In Compose v5, !reset resets a key to its default (empty) and ignores the provided values. !override replaces the existing list entirely, which is the correct behaviour for restricting ports to 127.0.0.1. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
944 B
YAML
38 lines
944 B
YAML
# Production overrides for DeckForge
|
|
# Usage: docker compose -f docker-compose.yml -f docker-compose.prod.yml <command>
|
|
#
|
|
# Changes from base:
|
|
# - All ports bound to 127.0.0.1 (Apache reverse proxy, Docker bypasses UFW otherwise)
|
|
# - postgres/redis ports removed (internal Docker network only)
|
|
# - nginx service excluded (Apache on host replaces it)
|
|
# - PYTHONUNBUFFERED=1 on api for log visibility
|
|
# - basePath env vars for Next.js
|
|
#
|
|
# Note: uses !override (not !reset) to REPLACE port lists, not clear them
|
|
|
|
services:
|
|
postgres:
|
|
ports: !override []
|
|
|
|
redis:
|
|
ports: !override []
|
|
|
|
api:
|
|
ports: !override
|
|
- "127.0.0.1:${API_PORT:-8000}:8000"
|
|
environment:
|
|
PYTHONUNBUFFERED: "1"
|
|
|
|
worker:
|
|
environment:
|
|
PYTHONUNBUFFERED: "1"
|
|
|
|
web:
|
|
ports: !override
|
|
- "127.0.0.1:${WEB_PORT:-3000}:3000"
|
|
environment:
|
|
NEXT_PUBLIC_BASE_PATH: "/ppt-tool"
|
|
|
|
nginx:
|
|
profiles:
|
|
- disabled
|