Update stack.production.yml

This commit is contained in:
colin 2025-02-06 18:49:48 -05:00
parent 3e58654e31
commit 6606e8bbca
1 changed files with 21 additions and 23 deletions

View File

@ -1,5 +1,3 @@
version: "3.8"
networks: networks:
traefik: traefik:
external: true external: true
@ -27,7 +25,7 @@ services:
replicas: 1 replicas: 1
labels: labels:
traefik.enable: "true" traefik.enable: "true"
traefik.http.routers.portainer.rule: Host(`portainer.nixc.us`) traefik.http.routers.portainer.rule: Host(`portainer.odoo.nixc.us`)
traefik.http.routers.portainer.entrypoints: websecure traefik.http.routers.portainer.entrypoints: websecure
traefik.http.routers.portainer.service: portainer traefik.http.routers.portainer.service: portainer
traefik.http.routers.portainer.tls: "true" traefik.http.routers.portainer.tls: "true"
@ -39,23 +37,23 @@ services:
- traefik - traefik
- portainer - portainer
portainer_agent: # portainer_agent:
image: git.nixc.us/nixius/portainer:production-agent # image: git.nixc.us/nixius/portainer:production-agent
environment: # environment:
- EDGE=1 # - EDGE=1
- EDGE_ID={{.Node.Hostname}} # - EDGE_ID={{.Node.Hostname}}
- EDGE_KEY=${PORTAINER_EDGE_KEY} # - EDGE_KEY=${PORTAINER_EDGE_KEY}
- EDGE_INSECURE_POLL=1 # - EDGE_INSECURE_POLL=1
- AGENT_CLUSTER_ADDR=tasks.portainer_agent # - 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: # placement:
constraints: # constraints:
- node.platform.os == linux # Runs on Linux nodes only # - node.platform.os == linux # Runs on Linux nodes only
labels: # labels:
- "traefik.enable=false" # - "traefik.enable=false"
networks: # networks:
- portainer # - portainer