-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstack-portainer.yml
57 lines (45 loc) · 1.26 KB
/
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
48
49
50
51
52
53
54
55
56
57
version: '3.8'
services:
portainer:
image: portainer/portainer-ce:latest
command: -H tcp://tasks.agent:9001 --tlsskipverify
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
resources:
limits:
cpus: '0.2'
memory: 20M
restart_policy:
condition: on-failure
labels:
traefik.enable: "true"
traefik.docker.network: "proxy"
traefik.http.routers.portainer.entrypoints: "websecure"
traefik.http.routers.portainer.rule: "Host(`portainer.<%= $(bin/get swarm) -%>`)"
traefik.http.routers.portainer.tls.certresolver: "resolver-dns"
traefik.http.routers.portainer.tls.domains[0].main: "<%= $(bin/get swarm) -%>"
traefik.http.routers.portainer.tls.domains[0].sans: "*.<%= $(bin/get swarm) -%>"
traefik.http.services.portainer.loadbalancer.server.port: "9000"
volumes:
- /root/data/portainer:/data
logging:
options:
max-size: "1m"
networks:
- proxy
- portainer
logging:
options:
max-size: "1m"
networks:
portainer:
name: portainer
driver: overlay
external: true
proxy:
name: proxy
driver: overlay
external: true