forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.yml
More file actions
43 lines (40 loc) · 1.03 KB
/
stack.yml
File metadata and controls
43 lines (40 loc) · 1.03 KB
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
version: '3.2'
services:
agent:
image: portainer/agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- agent_network
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
portainer:
image: portainer/portainer
command: -H tcp://tasks.agent:9001 --tlsskipverify
networks:
- agent_network
- overlaynw
ports:
- "9000:9000"
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
volumes:
- /tmp/data/portainer-data/:/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer.rule=Host(`test3`)"
- "traefik.http.routers.portainer.entrypoints=web"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
- "traefik.docker.network=portainer_overlaynw"
networks:
agent_network:
driver: overlay
overlaynw:
driver: overlay
attachable: true