-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev-app.yml
76 lines (74 loc) · 2.18 KB
/
docker-compose.dev-app.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/adrenaline:ui-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}
volumes:
- ./ui:/app
- /app/node_modules
depends_on:
- backend-dev
networks:
- app-network
- services-network
backend-dev:
build:
context: ./adrenaline
dockerfile: Dockerfile.dev
args:
- BACKEND_PORT=${BACKEND_PORT}
- FRONTEND_PORT=${FRONTEND_PORT}
- NER_SERVICE_PORT=${NER_SERVICE_PORT}
image: vectorinstitute/adrenaline:backend-dev-${BUILD_ID}
env_file: .env.development
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
environment:
- BACKEND_PORT=${BACKEND_PORT}
- FRONTEND_PORT=${FRONTEND_PORT}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- NER_SERVICE_PORT=${NER_SERVICE_PORT}
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
- MONGO_HOST=${MONGO_HOST}
- MONGO_PORT=${MONGO_PORT}
- MEDS_DATA_DIR=${MEDS_DATA_DIR}
- CHROMA_SERVICE_HOST=${CHROMA_SERVICE_HOST}
- CHROMA_SERVICE_PORT=${CHROMA_SERVICE_PORT}
- EMBEDDING_SERVICE_HOST=${EMBEDDING_SERVICE_HOST}
- EMBEDDING_SERVICE_PORT=${EMBEDDING_SERVICE_PORT}
- LLM_SERVICE_URL=${LLM_SERVICE_URL}
- LLM_SERVICE_HOST=${LLM_SERVICE_HOST}
- LLM_SERVICE_PORT=${LLM_SERVICE_PORT}
volumes:
- ./adrenaline:/app
- ${MEDS_DATA_DIR}:${MEDS_DATA_DIR}:ro
networks:
- app-network
- services-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${BACKEND_PORT}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
app-network:
driver: bridge
services-network:
external: true
custom-network:
external: true