Files
dsas-cca-backend-bun/docker-compose.yaml
2026-04-06 16:43:10 -04:00

67 lines
1.6 KiB
YAML

services:
# Warp Socks Proxy Service (Internal only - no external ports exposed)
warp-proxy:
image: ghcr.io/mon-ius/docker-warp-socks:v5
container_name: dsas-cca-warp-proxy
restart: unless-stopped
networks:
- cca_network
# Only expose port internally, not to host
expose:
- "9091"
profiles:
- proxy
app:
build:
context: .
dockerfile: Dockerfile
container_name: dsas-cca-backend
ports:
- "${PORT:-3000}:${PORT:-3000}"
env_file:
- .env
environment:
- NODE_ENV=production
- PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
# Proxy configuration (only active when USE_PROXY=true)
- USE_PROXY=${USE_PROXY:-false}
- HTTP_PROXY=${HTTP_PROXY:-}
- HTTPS_PROXY=${HTTPS_PROXY:-}
- ALL_PROXY=${ALL_PROXY:-}
restart: unless-stopped
depends_on:
redis:
condition: service_healthy
warp-proxy:
condition: service_started
required: false
volumes:
- ./services/cookies.json:/usr/src/app/services/cookies.json
networks:
- cca_network
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
image: "redis:8.0-alpine"
container_name: dsas-cca-redis
command: redis-server --requirepass "dsas-cca"
volumes:
- redis_data:/data
restart: unless-stopped
networks:
- cca_network
healthcheck:
test: ["CMD", "redis-cli", "-a", "dsas-cca", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
redis_data:
networks:
cca_network:
driver: bridge