-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 957 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 957 Bytes
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
services:
db:
container_name: postgres_db
image: postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5433:5432"
env_file:
- ./backend/.env.db
fastapi_app:
container_name: fastapi_app
build:
context: ./backend
dockerfile: Dockerfile
command: uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- ./backend:/app
env_file:
- ./backend/.env
depends_on:
- db
ports:
- "8000:8000"
alembic:
container_name: alembic
build:
context: ./backend
dockerfile: Dockerfile
command: alembic upgrade head
volumes:
- ./backend:/app
env_file:
- ./backend/.env
depends_on:
- db
frontend:
build: ./frontend
container_name: frontend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
volumes:
postgres_data: