-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
38 lines (36 loc) · 943 Bytes
/
docker-compose.dev.yml
File metadata and controls
38 lines (36 loc) · 943 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
services:
api:
build: ./backend
command: uvicorn backend.main:app --host 0.0.0.0 --port 8001 --reload
ports:
- "8001:8001"
environment:
- DATABASE_URL=sqlite:////data/mikrosms.db
- SECRET_KEY=${SECRET_KEY:-dev-secret-key-32bytes!!!!!!!!}
- DEBUG=true
volumes:
- ./backend:/app/backend
- mikrosms_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/api/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
web:
image: node:20-alpine
working_dir: /app
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 5174"
ports:
- "5174:5174"
environment:
- VITE_PROXY_TARGET=http://api:8001
volumes:
- ./frontend:/app
- web_node_modules:/app/node_modules
depends_on:
api:
condition: service_healthy
volumes:
mikrosms_data:
web_node_modules: