-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.08 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
services:
frontend:
build:
context: ./recordify_fe
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- VITE_API_URL=${VITE_API_URL}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- SESSION_SECRET=${SESSION_SECRET}
volumes:
- ./recordify_fe:/app
- /app/node_modules
depends_on:
- backend
- db
backend:
build:
context: ./recordify_be
dockerfile: Dockerfile
ports:
- "4000:4000"
environment:
- NODE_ENV=development
- DATABASE_URL=${DATABASE_URL}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- JWT_SECRET=${JWT_SECRET}
- SESSION_SECRET=${SESSION_SECRET}
volumes:
- ./recordify_be:/app
- /app/node_modules
depends_on:
- db
db:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: