-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.12 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.12 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
51
version: "3.8"
services:
backend:
build:
context: ./nexus-r
dockerfile: ../Dockerfile.backend
container_name: nexus-r-backend
ports:
- "8000:8000"
environment:
- NEXUS_ENV=development
- NEXUS_DATA_DIR=/data
volumes:
- nexus-data:/data
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
frontend:
build:
context: ./nexus-r/frontend
dockerfile: ../../Dockerfile.frontend
container_name: nexus-r-frontend
ports:
- "3000:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
chromadb:
image: chromadb/chroma:latest
container_name: nexus-r-chroma
ports:
- "8001:8000"
volumes:
- chroma-data:/chroma/chroma
environment:
- IS_PERSISTENT=TRUE
- PERSIST_DIRECTORY=/chroma/chroma
- ANONYMIZED_TELEMETRY=FALSE
restart: unless-stopped
volumes:
nexus-data:
chroma-data: