Update stack.production.yml

This commit is contained in:
colin 2025-02-05 15:07:25 -05:00
parent 1086dd6fb4
commit 3fd6f592d7
1 changed files with 16 additions and 5 deletions

View File

@ -1,4 +1,5 @@
#build 0
version: "3.8"
networks:
traefik:
external: true
@ -8,18 +9,21 @@ networks:
volumes:
portainer_agent_data:
driver: local
portainer_data:
driver: local
services:
portainer:
image: git.nixc.us/nixius/portainer:production-portainer
command: -H tcp://tasks.portainer_agent:9001 --tlsskipverify
volumes:
- /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
deploy:
placement:
constraints:
- node.hostname == macmini7
- node.role == manager # Ensures Portainer runs on a manager node
replicas: 1
labels:
traefik.enable: "true"
@ -38,13 +42,20 @@ services:
portainer_agent:
image: git.nixc.us/nixius/portainer:production-agent
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:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_agent_data:/data
deploy:
mode: global
placement:
constraints:
- node.platform.os == linux # Runs on Linux nodes only
labels:
- "traefik.enable=false"
networks:
- portainer
- portainer