-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 904 Bytes
/
docker-compose.yml
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
services:
backend:
build:
context: ../bookinghub-backend
container_name: bookinghub_backend
ports:
- "8000:8000"
volumes:
- ../bookinghub-backend:/app
env_file:
- .env
environment:
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
depends_on:
- db
frontend:
build:
context: ../bookinghub-frontend
container_name: bookinghub_frontend
ports:
- "3000:3000"
volumes:
- ../bookinghub-frontend:/app
- /app/node_modules
environment:
- REACT_APP_BACKEND_URL=http://localhost:8000
db:
image: postgres:16
container_name: bookinghub_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
postgres_data: