26 lines
953 B
YAML
26 lines
953 B
YAML
# Production override — use with: docker compose -f docker-compose.yml -f docker-compose.prod.yml up
|
|
# Assumes: managed PostgreSQL, external reverse proxy / load balancer handling TLS and port 80/443.
|
|
|
|
services:
|
|
# No db service — managed PostgreSQL is assumed.
|
|
# Set KMTN_DATABASE_URL in your environment or a .env file.
|
|
|
|
api:
|
|
environment:
|
|
KMTN_ENV: production
|
|
# Override with your actual production domain(s)
|
|
KMTN_CORS_ORIGINS: '["https://yourdomain.com"]'
|
|
volumes:
|
|
- logs:/logs
|
|
# No port mapping — traffic arrives via reverse proxy / load balancer
|
|
|
|
frontend:
|
|
environment:
|
|
# Internal API target for nginx proxy
|
|
API_UPSTREAM: https://api.yourdomain.com
|
|
# Browser-facing API URL. Empty = proxy mode. Set to direct URL if ingress breaks proxy chain.
|
|
API_PUBLIC_URL: ""
|
|
volumes:
|
|
- logs:/logs
|
|
# No port mapping — traffic arrives via reverse proxy / load balancer
|