-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (50 loc) · 1.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (50 loc) · 1.3 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
50
services:
backend:
build:
context: .
dockerfile: Dockerfile
target: backend
ports:
- "8000:8000"
networks:
- application
depends_on:
- database
environment:
MONGODB_CONNECTION_STRING: "mongodb://database:27017"
MONGODB_DATABASE: phd_advisor
JWT_SECRET_KEY: ${JWT_SECRET_KEY:-CHANGEME-by-overriding-in-dot-env-file}
GEMINI_API_KEY: ${GEMINI_API_KEY:-?}
VLLM_API_KEY: ${VLLM_API_KEY:-}
BRAINFORGE_USERNAME: ${BRAINFORGE_USERNAME:-}
BRAINFORGE_PASSWORD: ${BRAINFORGE_PASSWORD:-}
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:3000}
GEMINI_MODEL: gemini-2.5-flash
CONFIG_PATH: ${CONFIG_PATH:-/ccai/phd_config.yaml}
frontend:
build:
context: .
dockerfile: Dockerfile
target: frontend
ports:
- "3000:3000"
networks:
- application
depends_on:
- backend
environment:
REACT_APP_API_URL: ${REACT_APP_API_URL:-http://localhost:8000}
REACT_APP_TESTING_ONBOARDING: ${REACT_APP_TESTING_ONBOARDING:-false}
database:
image: mongo:8.0
volumes:
- mongo_data:/data/db
networks:
- application
volumes:
mongo_data:
networks:
application:
driver: bridge
driver_opts:
com.docker.network.bridge.host_binding_ipv4: "0.0.0.0"