--- version: "3.8" services: app: image: mydocs:latest networks: - proxy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000"] interval: 10s timeout: 10s retries: 10 start_period: 15s deploy: update_config: failure_action: rollback order: start-first labels: - "traefik.enable=true" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8000" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.${STACK_NAME}.entrypoints=web" networks: proxy: external: true