mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
* docker-compose for production frontend * fix: Remove external Redis port mapping for Coolify compatibility Redis should only be accessible within the internal Docker network in Coolify deployments to avoid port conflicts with other applications. * fix: Remove external port mapping for web service in Coolify Coolify handles port exposure through its proxy (Traefik), so services should not expose ports directly in the docker-compose file. * server side client envs * missing vars * nextjs experimental * fix claude 'fix' * remove build env vars compose * docker * remove ports for coolify * review * cleanup --------- Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# Production Docker Compose configuration for Frontend
|
|
# Usage: docker compose -f docker-compose.prod.yml up -d
|
|
|
|
services:
|
|
web:
|
|
build:
|
|
context: ./www
|
|
dockerfile: Dockerfile
|
|
image: reflector-frontend:latest
|
|
environment:
|
|
- KV_URL=${KV_URL:-redis://redis:6379}
|
|
- SITE_URL=${SITE_URL}
|
|
- API_URL=${API_URL}
|
|
- WEBSOCKET_URL=${WEBSOCKET_URL}
|
|
- NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:3000}
|
|
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET:-changeme-in-production}
|
|
- AUTHENTIK_ISSUER=${AUTHENTIK_ISSUER}
|
|
- AUTHENTIK_CLIENT_ID=${AUTHENTIK_CLIENT_ID}
|
|
- AUTHENTIK_CLIENT_SECRET=${AUTHENTIK_CLIENT_SECRET}
|
|
- AUTHENTIK_REFRESH_TOKEN_URL=${AUTHENTIK_REFRESH_TOKEN_URL}
|
|
- SENTRY_DSN=${SENTRY_DSN}
|
|
- SENTRY_IGNORE_API_RESOLUTION_ERROR=${SENTRY_IGNORE_API_RESOLUTION_ERROR:-1}
|
|
depends_on:
|
|
- redis
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7.2-alpine
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
volumes:
|
|
- redis_data:/data
|
|
|
|
volumes:
|
|
redis_data: |