-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (62 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
68 lines (62 loc) · 1.44 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3.8'
services:
postgres:
image: postgres:15
container_name: postgres_db
environment:
POSTGRES_USER: ${DB_USER:-droitdraft_user}
POSTGRES_PASSWORD: ${DB_PASSWORD:-droitdraft_pass}
POSTGRES_DB: ${DB_NAME:-droitdraft_dev}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
minio:
image: minio/minio
container_name: minio_storage
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY:-minioadmin}
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
chroma:
image: chromadb/chroma
container_name: chroma_db
ports:
- "8000:8000"
volumes:
- chroma_data:/index_data
environment:
- ALLOW_RESET=TRUE
- PERSIST_DIRECTORY=/index_data
backend:
build: ./backend
container_name: droitdraft_backend
ports:
- "8002:8002"
depends_on:
- postgres
- minio
- chroma
env_file: ./backend/.env
environment:
- DB_HOST=postgres
- MINIO_ENDPOINT=minio:9000
- CHROMA_HOST=chroma
frontend:
build: ./frontend
container_name: droitdraft_frontend
ports:
- "3000:3000"
depends_on:
- backend
environment:
- NEXT_PUBLIC_API_URL=http://backend:8002
volumes:
postgres_data:
minio_data:
chroma_data: