forked from BretFisher/dogvscat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack-portainer.yml
47 lines (41 loc) · 899 Bytes
/
stack-portainer.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
version: "3.4"
services:
web:
image: portainer/portainer
# command: -H "tcp://tasks.agent:9001"
deploy:
replicas: 1
# placement:
# constraints: [node.role == manager]
# place on managers when not using agent, place on workers if using agent
labels:
- traefik.port=9000
- traefik.docker.network=proxy
- traefik.frontend.rule=Host:portainer.dogvs.cat
networks:
- proxy
- portainer
volumes:
- web:/data
agent:
image: portainer/agent
networks:
- portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: global
environment:
AGENT_CLUSTER_ADDR: tasks.agent
logging:
options:
max-size: "500k"
networks:
proxy:
external: true
portainer: {}
volumes:
web:
driver: rexray/dobs
driver_opts:
size: 1