services: mytmux: build: . image: mytmux-prod:latest container_name: mytmux-prod restart: always networks: - traefik-public labels: - "traefik.enable=true" - "traefik.http.routers.mytmux.rule=Host(`mytmux.life`) || Host(`www.mytmux.life`)" - "traefik.http.routers.mytmux.entrypoints=web" - "traefik.http.services.mytmux.loadbalancer.server.port=80" healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:80/"] interval: 30s timeout: 10s retries: 3 start_period: 15s networks: traefik-public: external: true