-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 868 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 868 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
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
init: true
restart: unless-stopped
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
ports:
- "8000:8000"
volumes:
- ./backend:/app/backend
- ./praxis-db:/app/praxis-db
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/health', timeout=2).read()"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
init: true
restart: unless-stopped
environment:
VITE_PROXY_TARGET: http://backend:8000
ports:
- "5173:5173"
volumes:
- ./frontend:/app/frontend
- /app/frontend/node_modules
depends_on:
- backend