Files
webnews/docker-compose.coolify.yml
Sudo-Ivan 9bd06c1f70
Some checks failed
renovate / renovate (push) Failing after 20s
CI / build-frontend (push) Successful in 47s
CI / build-backend (push) Successful in 25s
OSV-Scanner Scheduled Scan / scan-scheduled (push) Successful in 9m37s
Add rate limiting environment variables to docker-compose.coolify.yml for improved service configuration
2025-12-27 20:09:28 -06:00

30 lines
923 B
YAML

services:
web-news:
build:
context: .
dockerfile: Dockerfile
image: ${DOCKER_IMAGE:-web-news:latest}
environment:
- PORT=${PORT:-8080}
- NODE_ENV=production
- AUTH_MODE=${AUTH_MODE:-multi}
- ALLOW_REGISTRATION=${ALLOW_REGISTRATION:-true}
# Coolify automatically populates SERVICE_URL_WEB_NEWS with the domain
- ALLOWED_ORIGINS=${SERVICE_URL_WEB_NEWS:-*}
- AUTH_FILE=/app/data/accounts.json
- HASHES_FILE=/app/data/client_hashes.json
- RATE_LIMIT=${RATE_LIMIT:-100}
- RATE_BURST=${RATE_BURST:-200}
volumes:
- web-news-data:/app/data
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.web-news-ratelimit.ratelimit.average=100"
- "traefik.http.middlewares.web-news-ratelimit.ratelimit.burst=50"
security_opt:
- no-new-privileges:true
restart: unless-stopped
volumes:
web-news-data: