fix: restart_policy any + remove dockerfile healthcheck causing swarm complete state
Some checks failed
CI/CD → Deploy via SSH / Build & Push Docker Images (push) Successful in 43s
CI/CD → Deploy via SSH / Deploy via SSH (push) Successful in 1m1s
CI/CD → Deploy via SSH / Validate HTTPS & Endpoints (push) Failing after 45s

This commit is contained in:
MatheusAlves96 2026-04-21 01:32:06 -03:00
parent c756249690
commit b4ae2718f7
2 changed files with 6 additions and 5 deletions

View file

@ -36,7 +36,9 @@ services:
deploy: deploy:
replicas: 1 replicas: 1
restart_policy: restart_policy:
condition: on-failure condition: any
delay: 5s
max_attempts: 5
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=proxy" - "traefik.docker.network=proxy"
@ -58,7 +60,9 @@ services:
deploy: deploy:
replicas: 1 replicas: 1
restart_policy: restart_policy:
condition: on-failure condition: any
delay: 5s
max_attempts: 5
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=proxy" - "traefik.docker.network=proxy"

View file

@ -23,6 +23,3 @@ COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 80
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
CMD wget -qO- http://localhost/health || exit 1