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
All checks were successful
Deploy Production (ss-tools.crewsportswear.app) / deploy (push) Successful in 2m47s
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Server Configuration
|
||||
PORT=5955
|
||||
PORT=80
|
||||
HOST=0.0.0.0
|
||||
|
||||
# SSL Configuration (only needed if not using Traefik)
|
||||
|
||||
@@ -7,7 +7,8 @@ RUN apk add --no-cache \
|
||||
freetype \
|
||||
harfbuzz \
|
||||
ca-certificates \
|
||||
ttf-freefont
|
||||
ttf-freefont \
|
||||
wget
|
||||
|
||||
# Tell Puppeteer to skip installing Chrome. We'll use the installed package.
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
||||
|
||||
@@ -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`)"
|
||||
|
||||
Reference in New Issue
Block a user