-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
76 lines (72 loc) · 1.89 KB
/
docker-compose.dev.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
70
71
72
73
74
75
76
services:
frontend-dev:
profiles: ["frontend"]
build:
context: ./ui
dockerfile: Dockerfile.dev
args:
- FRONTEND_PORT=${FRONTEND_PORT}
- BACKEND_PORT=${BACKEND_PORT}
- BACKEND_HOST=${BACKEND_HOST}
image: vectorinstitute/health-rec:frontend-dev-${BUILD_ID}
env_file: .env.development
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
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}
volumes:
- ./ui:/app
- /app/node_modules
depends_on:
- backend-dev
networks:
- app-network
backend-dev:
build:
context: ./health_rec
dockerfile: Dockerfile.dev
args:
- BACKEND_PORT=${BACKEND_PORT}
- FRONTEND_PORT=${FRONTEND_PORT}
image: vectorinstitute/health-rec:backend-dev-${BUILD_ID}
env_file: .env.development
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}
- COLLECTION_NAME=${COLLECTION_NAME}
volumes:
- ./health_rec:/app
- ${DATA_DIR}:/data
networks:
- app-network
depends_on:
chromadb-dev:
condition: service_healthy
chromadb-dev:
image: ghcr.io/chroma-core/chroma:0.5.15
volumes:
- chroma_data_dev:/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_dev:
networks:
app-network:
driver: bridge