-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 984 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
44
45
46
47
48
49
50
version: "3.9"
services:
app_backend:
build:
context: ./backend
dockerfile: Dockerfile-dev-backend
command: ./docker-entrypoint.sh
env_file:
- backend/.env.app.dev
- backend/.env.db.dev
volumes:
- ./backend/app:/backend/app
- ./backend/alembic:/backend/alembic
ports:
- "8080:8080"
depends_on:
- postgres
app_frontend:
restart: always
build:
dockerfile: Dockerfile-dev-frontend
context: ./frontend
command: npm start
volumes:
- ./frontend:/frontend
stdin_open: true
ports:
- "3000:3000"
depends_on:
- postgres
- app_backend
postgres:
image: postgres
command: [ "postgres" , "-c", "log_statement=all" ]
env_file:
- backend/.env.db.dev
expose:
- 5432
healthcheck:
test: pg_isready -U postgres
timeout: 20s
retries: 3
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data: