feat: update Traefik configuration and remove maintenance page
This commit is contained in:
parent
a36f515170
commit
b09a2bbbd2
2 changed files with 6 additions and 142 deletions
|
|
@ -189,8 +189,12 @@ services:
|
||||||
- "traefik.http.routers.info.service=info"
|
- "traefik.http.routers.info.service=info"
|
||||||
- "traefik.http.routers.info.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.info.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.services.info.loadbalancer.server.port=3000"
|
- "traefik.http.services.info.loadbalancer.server.port=3000"
|
||||||
# MAINTENANCE MIDDLEWARE
|
healthcheck:
|
||||||
- "traefik.http.routers.info.middlewares=catch-maintenance@docker"
|
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
|
||||||
|
interval: 15s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 60s
|
||||||
depends_on:
|
depends_on:
|
||||||
backend:
|
backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
@ -200,23 +204,6 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
tiles:
|
tiles:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
maintenance-page:
|
|
||||||
image: nginx:alpine
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- dokploy-network
|
|
||||||
# You can create a folder in your Dokploy project for the HTML
|
|
||||||
volumes:
|
|
||||||
- ./maintenance:/usr/share/nginx/html:ro
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.maint.rule=Host(`${DOMAIN}`)"
|
|
||||||
- "traefik.http.routers.maint.priority=1"
|
|
||||||
- "traefik.http.routers.maint.entrypoints=websecure"
|
|
||||||
- "traefik.http.services.maintenance-page.loadbalancer.server.port=80"
|
|
||||||
- "traefik.http.middlewares.catch-maintenance.errors.status=502-504"
|
|
||||||
- "traefik.http.middlewares.catch-maintenance.errors.service=maintenance-page"
|
|
||||||
- "traefik.http.middlewares.catch-maintenance.errors.query=/index.html"
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
dokploy-network:
|
dokploy-network:
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue