-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.03 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
services:
frontend:
build:
context: .
dockerfile: docker/frontend.Dockerfile
container_name: stackoverkill-frontend
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
# Empty = uses relative URLs, calls go through frontend proxy
- NEXT_PUBLIC_API_URL=
# Backend URL for server-side proxy
- BACKEND_URL=http://backend:3001
depends_on:
- backend
networks:
- stackoverkill-network
backend:
build:
context: .
dockerfile: docker/backend.Dockerfile
container_name: stackoverkill-backend
restart: unless-stopped
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- PORT=3001
- FRONTEND_URL=http://localhost:3000
- DATA_DIR=/app/data
volumes:
# Persistent data: leaderboard + OG images
- leaderboard-data:/app/data
networks:
- stackoverkill-network
networks:
stackoverkill-network:
driver: bridge
volumes:
leaderboard-data:
driver: local