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

@@ -1,5 +1,5 @@
# Server Configuration # Server Configuration
PORT=5955 PORT=80
HOST=0.0.0.0 HOST=0.0.0.0
# SSL Configuration (only needed if not using Traefik) # SSL Configuration (only needed if not using Traefik)

View File

@@ -7,7 +7,8 @@ RUN apk add --no-cache \
freetype \ freetype \
harfbuzz \ harfbuzz \
ca-certificates \ ca-certificates \
ttf-freefont ttf-freefont \
wget
# Tell Puppeteer to skip installing Chrome. We'll use the installed package. # Tell Puppeteer to skip installing Chrome. We'll use the installed package.
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \

View File

@@ -3,8 +3,14 @@ services:
image: screenshot-tools:latest image: screenshot-tools:latest
container_name: screenshot_service container_name: screenshot_service
restart: unless-stopped 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: environment:
- PORT=5955 - PORT=80
- HOST=0.0.0.0 - HOST=0.0.0.0
- USE_SSL=false - USE_SSL=false
- OUTPUT_DIR=/var/www/html/images/ - OUTPUT_DIR=/var/www/html/images/
@@ -27,7 +33,7 @@ services:
- "traefik.http.routers.screenshot-service.tls.certresolver=le" - "traefik.http.routers.screenshot-service.tls.certresolver=le"
# Service # Service
- "traefik.http.services.screenshot-service.loadbalancer.server.port=5955" - "traefik.http.services.screenshot-service.loadbalancer.server.port=80"
# HTTP to HTTPS redirect # HTTP to HTTPS redirect
- "traefik.http.routers.screenshot-service-http.rule=Host(`ss-tools.crewsportswear.app`)" - "traefik.http.routers.screenshot-service-http.rule=Host(`ss-tools.crewsportswear.app`)"