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:
traefik:
external: true
@ -27,7 +25,7 @@ services:
replicas: 1
labels:
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.service: portainer
traefik.http.routers.portainer.tls: "true"
@ -39,23 +37,23 @@ services:
- traefik
- portainer
portainer_agent:
image: git.nixc.us/nixius/portainer:production-agent
environment:
- EDGE=1
- EDGE_ID={{.Node.Hostname}}
- 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_agent:
# image: git.nixc.us/nixius/portainer:production-agent
# environment:
# - EDGE=1
# - EDGE_ID={{.Node.Hostname}}
# - 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