-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
41 lines (38 loc) · 1.07 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
41 lines (38 loc) · 1.07 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
services:
frontend:
image: ghcr.io/rwx-g/stackoverkill.io/frontend:latest
container_name: stackoverkill-frontend
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_BASE_URL=https://stackoverkill.io
# No NEXT_PUBLIC_API_URL = uses relative URLs (same domain)
# Backend URL for server-side proxy
- BACKEND_URL=http://backend:3001
depends_on:
- backend
networks:
- stackoverkill-internal
backend:
image: ghcr.io/rwx-g/stackoverkill.io/backend:latest
container_name: stackoverkill-backend
restart: unless-stopped
# No ports exposed - only accessible via internal network
environment:
- NODE_ENV=production
- PORT=3001
- FRONTEND_URL=https://stackoverkill.io
- DATA_DIR=/app/data
volumes:
# Persistent data: leaderboard + OG images
- stackoverkill-data:/app/data
networks:
- stackoverkill-internal
networks:
stackoverkill-internal:
driver: bridge
volumes:
stackoverkill-data:
driver: local