Update stack.production.yml
This commit is contained in:
parent
1086dd6fb4
commit
3fd6f592d7
|
|
@ -1,4 +1,5 @@
|
||||||
#build 0
|
version: "3.8"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
|
@ -8,18 +9,21 @@ networks:
|
||||||
volumes:
|
volumes:
|
||||||
portainer_agent_data:
|
portainer_agent_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
portainer_data:
|
||||||
|
driver: local
|
||||||
|
|
||||||
services:
|
services:
|
||||||
portainer:
|
portainer:
|
||||||
image: git.nixc.us/nixius/portainer:production-portainer
|
image: git.nixc.us/nixius/portainer:production-portainer
|
||||||
|
command: -H tcp://tasks.portainer_agent:9001 --tlsskipverify
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /mnt/tank/persist/nixc.us/portainer/production/data:/data
|
- portainer_data:/data
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.hostname == macmini7
|
- node.role == manager # Ensures Portainer runs on a manager node
|
||||||
replicas: 1
|
replicas: 1
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
|
|
@ -38,12 +42,19 @@ services:
|
||||||
portainer_agent:
|
portainer_agent:
|
||||||
image: git.nixc.us/nixius/portainer:production-agent
|
image: git.nixc.us/nixius/portainer:production-agent
|
||||||
environment:
|
environment:
|
||||||
- AGENT_CLUSTER_ADDR=portainer_portainer
|
- EDGE=1
|
||||||
|
- EDGE_ID=${PORTAINER_EDGE_ID}
|
||||||
|
- EDGE_KEY=${PORTAINER_EDGE_KEY}
|
||||||
|
- EDGE_INSECURE_POLL=1
|
||||||
|
- AGENT_CLUSTER_ADDR=tasks.portainer_agent
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- portainer_agent_data:/data
|
- portainer_agent_data:/data
|
||||||
deploy:
|
deploy:
|
||||||
mode: global
|
mode: global
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.platform.os == linux # Runs on Linux nodes only
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=false"
|
- "traefik.enable=false"
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue