# Docker Stack pour déploiement en Swarm # Compatible avec CI/CD Gitea Actions version: '3.8' services: shannon: image: shannon/streamlit:${IMAGE_TAG:-latest} expose: - 8080 environment: - STREAMLIT_SERVER_HEADLESS=true volumes: - shannon_data:/app/data networks: - traefik_traefikfront deploy: labels: - traefik.enable=true - traefik.http.routers.shannon.rule=Host(`shannon.antopoid.com`) - traefik.http.routers.shannon.entrypoints=websecure - traefik.http.routers.shannon.tls.certresolver=myhttpchallenge - traefik.http.services.shannon.loadbalancer.server.port=8080 - traefik.http.middlewares.shannon-proxy-headers.headers.customrequestheaders.X-Forwarded-For= - traefik.http.routers.shannon.middlewares=shannon-proxy-headers - traefik.http.services.shannon.loadbalancer.passhostheader=true placement: constraints: - "node.hostname==macmini" replicas: 1 restart_policy: condition: on-failure update_config: parallelism: 1 delay: 10s order: start-first volumes: shannon_data: driver: local networks: traefik_traefikfront: external: true