-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.17 KB
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
services:
backend:
container_name: behavioral-health-backend
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- ./backend/.env
environment:
BHA_APP_ENV: development
BHA_DEBUG: "true"
BHA_API_PREFIX: ""
BHA_AUTH_SECRET_KEY: development-secret-key
BHA_SQLITE_DB_PATH: data/behavioral_health.sqlite3
BHA_ASSISTANT_TIMEOUT_SECONDS: "60"
BHA_ASSISTANT_INCLUDE_FEWSHOT: "true"
BHA_ASSISTANT_RECENT_HISTORY_TURNS: "5"
volumes:
- backend_data:/app/backend/data
healthcheck:
test:
[
"CMD",
"python",
"-c",
"from urllib.request import urlopen; import sys; sys.exit(0 if urlopen('http://127.0.0.1:8000/health').status == 200 else 1)"
]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
frontend:
container_name: behavioral-health-frontend
build:
context: ./frontend
dockerfile: Dockerfile
args:
EXPO_PUBLIC_API_URL: /api
depends_on:
backend:
condition: service_healthy
ports:
- "8080:80"
volumes:
backend_data: