Update server port to 80 and enhance health check configuration in Docker setup
All checks were successful
Deploy Production (ss-tools.crewsportswear.app) / deploy (push) Successful in 2m47s

This commit is contained in:
Frank John Begornia
2025-12-31 02:58:44 +08:00
parent 2067c72dc6
commit 4b7d43efc2
3 changed files with 11 additions and 4 deletions

View File

@@ -3,8 +3,14 @@ services:
image: screenshot-tools:latest
container_name: screenshot_service
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
environment:
- PORT=5955
- PORT=80
- HOST=0.0.0.0
- USE_SSL=false
- OUTPUT_DIR=/var/www/html/images/
@@ -27,7 +33,7 @@ services:
- "traefik.http.routers.screenshot-service.tls.certresolver=le"
# Service
- "traefik.http.services.screenshot-service.loadbalancer.server.port=5955"
- "traefik.http.services.screenshot-service.loadbalancer.server.port=80"
# HTTP to HTTPS redirect
- "traefik.http.routers.screenshot-service-http.rule=Host(`ss-tools.crewsportswear.app`)"