This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
73 lines (68 loc) · 1.55 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "3.4"
networks:
portainer:
attachable: true
volumes:
portainer:
driver: ${VOLUME_DRIVER:-local}
services:
portainer:
image: portainer/portainer:${PORTAINER_VERSION:-latest}
networks:
- portainer
ports:
- 9000:9000
volumes:
- portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
command: [
"--admin-password", "${PORTAINER_ENC_PASS}"
]
secrets:
- source: "portainer_password.v1"
target: "portainer_password"
uid: "33"
gid: "33"
mode: 0400
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
resources:
limits:
cpus: '0.20'
memory: 30M
reservations:
cpus: '0.10'
memory: 25M
portainer-endpoint:
image: softonic/portainer-endpoint:${PORTAINER_ENDPOINT_VERSION:-latest}
networks:
- portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
hostname: "{{ .Node.Hostname }}"
environment:
PORTAINER_ADDR: "portainer:9000"
PORTAINER_USER: "admin"
PORTAINER_PASS: "--DOCKER-SECRET:portainer_password--"
secrets:
- source: "portainer_password.v1"
target: "portainer_password"
uid: "33"
gid: "33"
mode: 0400
deploy:
mode: global
resources:
limits:
cpus: '0.10'
memory: 20M
reservations:
cpus: '0.05'
memory: 10M
secrets:
portainer_password.v1:
external: true