version: "3" services: ecb: image: docker.fokkinga.com/fokki200/ecb:latest container_name: ecb deploy: mode: replicated replicas: 1 labels: - "traefik.enable=true" - "traefik.http.routers.eancodeboek.entrypoints=http" - "traefik.http.routers.eancodeboek.rule=Host(`eancodeboek.fokkinga.com`)" - "traefik.http.middlewares.eancodeboek-https-redirect.redirectscheme.scheme=https" - "traefik.http.routers.eancodeboek.middlewares=eancodeboek-https-redirect" - "traefik.http.routers.eancodeboek-secure.entrypoints=https" - "traefik.http.routers.eancodeboek-secure.rule=Host(`eancodeboek.fokkinga.com`)" - "traefik.http.routers.eancodeboek-secure.tls=true" - "traefik.http.routers.eancodeboek-secure.tls.certresolver=cloudflare" - "traefik.http.routers.eancodeboek-secure.service=eancodeboek" - "traefik.http.services.eancodeboek.loadbalancer.server.port=5000" - "traefik.docker.network=proxy" networks: - proxy networks: - proxy restart: unless-stopped ports: - 5050:5000 healthcheck: test: curl --fail -s http://localhost:5000 || exit 1 interval: 1m30s timeout: 10s retries: 3 networks: proxy: external: true