forked from IU-Capstone-Project-2025/ProjectOR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 923 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 923 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
services:
backend:
build:
context: ./backend/app
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./backend/app:/app
env_file:
- ./backend/app/.env
environment:
- PYTHONPATH=/app
- POSTGRES_HOST=postgres
restart: unless-stopped
depends_on:
- postgres
- migrate
migrate:
build:
context: ./backend/app
dockerfile: Dockerfile
env_file:
- ./backend/app/.env
environment:
- POSTGRES_HOST=postgres
depends_on:
- postgres
command: [ "uv", "run", "alembic", "upgrade", "head" ]
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "80:80"
environment:
- VITE_API_BASE_URL=http://backend:8000/
depends_on:
- backend
restart: unless-stopped
postgres:
image: postgres:13.3
env_file:
- ./backend/app/.env