-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (65 loc) · 1.68 KB
/
docker-compose.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
frontend:
build:
context: ./ui
dockerfile: Dockerfile
args:
- FRONTEND_PORT=${FRONTEND_PORT}
- BACKEND_PORT=${BACKEND_PORT}
- BACKEND_HOST=${BACKEND_HOST}
image: vectorinstitute/health-rec:frontend-${BUILD_ID}
env_file: .env.production
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
- 3000:3000
environment:
- NEXT_PUBLIC_BACKEND_HOST=${BACKEND_HOST}
- NEXT_PUBLIC_BACKEND_PORT=${BACKEND_PORT}
- NEXT_PUBLIC_FRONTEND_PORT=${FRONTEND_PORT}
- NEXT_PUBLIC_MAPBOX_API_KEY=${MAPBOX_API_KEY}
depends_on:
- backend
networks:
- app-network
backend:
build:
context: ./health_rec
dockerfile: Dockerfile
args:
- BACKEND_PORT=${BACKEND_PORT}
- FRONTEND_PORT=${FRONTEND_PORT}
image: vectorinstitute/health-rec:backend-${BUILD_ID}
env_file: .env.production
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
environment:
- BACKEND_PORT=${BACKEND_PORT}
- FRONTEND_PORT=${FRONTEND_PORT}
- CHROMA_HOST=${CHROMA_HOST}
- CHROMA_PORT=${CHROMA_PORT}
- OPENAI_API_KEY=${OPENAI_API_KEY}
networks:
- app-network
depends_on:
chromadb:
condition: service_healthy
chromadb:
image: ghcr.io/chroma-core/chroma:latest
volumes:
- chroma_data:/chroma/chroma
ports:
- "${CHROMA_PORT}:8000"
environment:
- ALLOW_RESET=true
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/heartbeat"]
interval: 10s
timeout: 5s
retries: 5
volumes:
chroma_data:
networks:
app-network:
driver: bridge