- deploy.sh: idempotent 12-step deploy for Ubuntu (prereqs, port conflict check, basePath patch, build, migrate, Apache + UFW setup) - docker-compose.prod.yml: prod overrides (127.0.0.1 bindings, no nginx) - apache/deckforge.conf: reverse proxy template with SSE support Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
828 B
YAML
36 lines
828 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
|
|
|
|
services:
|
|
postgres:
|
|
ports: []
|
|
|
|
redis:
|
|
ports: []
|
|
|
|
api:
|
|
ports:
|
|
- "127.0.0.1:${API_PORT:-8000}:8000"
|
|
environment:
|
|
PYTHONUNBUFFERED: "1"
|
|
|
|
worker:
|
|
environment:
|
|
PYTHONUNBUFFERED: "1"
|
|
|
|
web:
|
|
ports:
|
|
- "127.0.0.1:${WEB_PORT:-3000}:3000"
|
|
environment:
|
|
NEXT_PUBLIC_BASE_PATH: "/ppt-tool"
|
|
|
|
nginx:
|
|
profiles:
|
|
- disabled
|