-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.31 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
version: '3.8'
services:
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_DB=voidlab
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- voidlab-postgres:/var/lib/postgresql/data
# --- FRONTEND (Next.js) ---
web:
build:
context: .
dockerfile: apps/web/Dockerfile
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
- /app/apps/web/.next
environment:
- NODE_ENV=development
- NEXT_PUBLIC_API_URL=http://localhost:5000
depends_on:
- api
# --- BACKEND (Node.js API) ---
api:
build:
context: .
dockerfile: apps/api/Dockerfile
ports:
- "5000:5000"
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
- PORT=5000
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/voidlab
- DATABASE_SSL=false
- WEB_APP_URL=http://localhost:3000
- API_BASE_URL=http://localhost:5000
- JWT_SECRET=voidlab-dev-jwt-secret
- APP_ENCRYPTION_KEY=voidlab-dev-encryption-secret
- JUDGE0_API_URL=https://ce.judge0.com
depends_on:
- postgres
# --- SHARED NETWORK ---
networks:
default:
name: voidlab-network
volumes:
voidlab-postgres: