services: screenshot-service: image: screenshot-tools:latest container_name: screenshot_service restart: unless-stopped environment: - PORT=5955 - HOST=0.0.0.0 - USE_SSL=false - OUTPUT_DIR=/var/www/html/images/ - BASE_URL=https://ss-tools.crewsportswear.app/ - VIEWPORT_WIDTH=1366 - VIEWPORT_HEIGHT=1100 - WAIT_TIME=10000 volumes: - screenshot_images:/var/www/html/images networks: - traefik-public labels: # Enable Traefik - "traefik.enable=true" # HTTP Router - "traefik.http.routers.screenshot-service.rule=Host(`ss-tools.crewsportswear.app`)" - "traefik.http.routers.screenshot-service.entrypoints=websecure" - "traefik.http.routers.screenshot-service.tls=true" - "traefik.http.routers.screenshot-service.tls.certresolver=le" # Service - "traefik.http.services.screenshot-service.loadbalancer.server.port=5955" # HTTP to HTTPS redirect - "traefik.http.routers.screenshot-service-http.rule=Host(`ss-tools.crewsportswear.app`)" - "traefik.http.routers.screenshot-service-http.entrypoints=web" - "traefik.http.routers.screenshot-service-http.middlewares=https-redirect" # HTTPS Redirect Middleware - "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https" - "traefik.http.middlewares.https-redirect.redirectscheme.permanent=true" volumes: screenshot_images: driver: local networks: traefik-public: external: true