-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
79 lines (74 loc) · 2.26 KB
/
compose.prod.yml
File metadata and controls
79 lines (74 loc) · 2.26 KB
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
# Production overrides - deploy as compose.override.yml on production server
# This file configures production-specific settings (CORS, rate limits, build targets)
#
# Usage on production:
# cp compose.prod.yml compose.override.yml
# docker compose up -d
services:
api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
# CORS - all production domains
- Cors__AllowedOrigins__0=https://app.project-nexus.net
- Cors__AllowedOrigins__1=https://uk.project-nexus.net
- Cors__AllowedOrigins__2=https://api.project-nexus.net
- Cors__AllowedOrigins__3=https://admin.project-nexus.net
- Cors__AllowedOrigins__4=https://ie.project-nexus.net
# Rate limiting - production values
- RateLimiting__Auth__PermitLimit=10
- RateLimiting__Auth__WindowSeconds=60
- RateLimiting__General__PermitLimit=500
- RateLimiting__General__WindowSeconds=60
# Admin Panel - production build (nginx, no hot-reload, no volume mounts)
admin:
build:
context: ./apps/admin
dockerfile: Dockerfile
target: production
args:
VITE_API_URL: https://api.project-nexus.net
ports:
- "127.0.0.1:5191:80"
volumes: []
environment:
- NODE_ENV=production
depends_on:
api:
condition: service_healthy
# Modern Frontend - production build (Next.js standalone, no volume mounts)
web-modern:
build:
context: ./apps/web-modern
dockerfile: Dockerfile
target: production
args:
NEXT_PUBLIC_API_URL: https://api.project-nexus.net
ports:
- "127.0.0.1:5170:3002"
volumes: []
environment:
- NODE_ENV=production
# UK Frontend - production build (no volume mounts)
web-uk:
build:
context: ./apps/web-uk
dockerfile: Dockerfile
target: production
ports:
- "127.0.0.1:5180:3001"
volumes: []
environment:
- NODE_ENV=production
# GOV.IE Frontend - production build (nginx, no volume mounts)
web-govie:
build:
context: ./apps/web-govie
dockerfile: Dockerfile
args:
VITE_API_BASE_URL: https://api.project-nexus.net
VITE_APP_NAME: Nexus Community
VITE_APP_VERSION: "0.1.0"
VITE_TENANT_SLUG: acme
ports:
- "127.0.0.1:5200:80"
volumes: []