-
Notifications
You must be signed in to change notification settings - Fork 0
/
portainer.yaml
49 lines (44 loc) · 1.02 KB
/
portainer.yaml
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
version: '3.4'
services:
portainer:
image: portainer/portainer
command: '-H "tcp://tasks.agent:9001" --tlsskipverify'
ports:
- 9000:9000
networks:
- proxy
- portainer_agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /srv/portainer/data:/data
deploy:
mode: replicated
replicas: 1
labels:
traefik.port: 9000
traefik.frontend.rule: "Host:portainer.192.168.20.217.nip.io"
traefik.docker.network: 'proxy'
placement:
constraints: [node.role == manager]
agent:
image: portainer/agent
environment:
AGENT_CLUSTER_ADDR: tasks.agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- target: 9001
published: 9001
protocol: tcp
mode: host
networks:
- portainer_agent
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
networks:
portainer_agent:
external: true
proxy:
external: true