-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1018 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (43 loc) · 1018 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
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: ts-errors-api
ports:
- "8000:8000"
environment:
- DATABASE_URL=sqlite:///./ts_analysis.db
- PYTHONUNBUFFERED=1
volumes:
# Mount for development - hot reload
- ./src:/app/src
- ./api:/app/api
# Persist database
- ./data:/app/data
command: uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
# Frontend will be added in Stage 4
# frontend:
# build:
# context: ./frontend
# dockerfile: Dockerfile
# container_name: ts-errors-frontend
# ports:
# - "3000:3000"
# depends_on:
# - api
# environment:
# - REACT_APP_API_URL=http://localhost:8000
volumes:
data:
driver: local
networks:
default:
name: ts-errors-network