GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ui/docker-compose.prod-simple.yml at main · openctemio/ui

This repository was archived by the owner on Oct 19, 2026. It is now read-only.

Expand file tree

/

docker-compose.prod-simple.yml

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
96 lines (86 loc) · 3.41 KB
/

docker-compose.prod-simple.yml

Copy path

File metadata and controls

96 lines (86 loc) · 3.41 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# =============================================================================
# Docker Compose - Production (Without Nginx)
# =============================================================================
# Use this when you have an external reverse proxy (cloud load balancer,
# Traefik, Caddy, or external Nginx) handling SSL termination.
#
# Usage:
# Build & Start: docker compose -f docker-compose.prod-simple.yml up --build -d
# Stop: docker compose -f docker-compose.prod-simple.yml down
# Logs: docker compose -f docker-compose.prod-simple.yml logs -f
#
# When to use:
# - AWS ALB, GCP Load Balancer, Azure App Gateway
# - Kubernetes Ingress
# - Traefik, Caddy as external proxy
# - Cloudflare Tunnel
#
# Required Environment Variables:
# - CSRF_SECRET (server-side secret for CSRF protection)
# - BACKEND_API_URL (internal API URL, e.g., http://api:8080)
#
# For full production with built-in Nginx/SSL, use: docker-compose.prod.yml
# =============================================================================
services:
# ---------------------------------------------------------------------------
# Next.js Production Application
# ---------------------------------------------------------------------------
nextjs:
build:
context: .
dockerfile: Dockerfile
target: production
args:
NEXT_PUBLIC_APP_URL: ${NEXT_PUBLIC_APP_URL:-https://localhost}
NEXT_PUBLIC_AUTH_PROVIDER: ${NEXT_PUBLIC_AUTH_PROVIDER:-local}
NEXT_PUBLIC_AUTH_COOKIE_NAME: ${NEXT_PUBLIC_AUTH_COOKIE_NAME:-auth_token}
NEXT_PUBLIC_REFRESH_COOKIE_NAME: ${NEXT_PUBLIC_REFRESH_COOKIE_NAME:-refresh_token}
NEXT_PUBLIC_OAUTH_CALLBACK_URL: ${NEXT_PUBLIC_OAUTH_CALLBACK_URL:-}
NEXT_PUBLIC_KEYCLOAK_URL: ${NEXT_PUBLIC_KEYCLOAK_URL:-}
NEXT_PUBLIC_KEYCLOAK_REALM: ${NEXT_PUBLIC_KEYCLOAK_REALM:-}
NEXT_PUBLIC_KEYCLOAK_CLIENT_ID: ${NEXT_PUBLIC_KEYCLOAK_CLIENT_ID:-}
NEXT_PUBLIC_KEYCLOAK_REDIRECT_URI: ${NEXT_PUBLIC_KEYCLOAK_REDIRECT_URI:-}
NEXT_PUBLIC_SENTRY_DSN: ${NEXT_PUBLIC_SENTRY_DSN:-}
environment:
NODE_ENV: production
BACKEND_API_URL: ${BACKEND_API_URL:-http://api:8080}
API_TIMEOUT: ${API_TIMEOUT:-30000}
CSRF_SECRET: ${CSRF_SECRET:?CSRF_SECRET is required}
KEYCLOAK_CLIENT_SECRET: ${KEYCLOAK_CLIENT_SECRET:-}
SECURE_COOKIES: ${SECURE_COOKIES:-true}
COOKIE_MAX_AGE: ${COOKIE_MAX_AGE:-604800}
ENABLE_TOKEN_REFRESH: ${ENABLE_TOKEN_REFRESH:-true}
TOKEN_REFRESH_BEFORE_EXPIRY: ${TOKEN_REFRESH_BEFORE_EXPIRY:-300}
# Expose port 3000 for external reverse proxy
ports:
- "${UI_PORT:-3000}:3000"
healthcheck:
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: always
networks:
- app-network
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "5"
# =============================================================================
# Networks
# =============================================================================
networks:
app-network:
driver: bridge
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.