-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-mac.compose.yml
More file actions
75 lines (75 loc) · 1.77 KB
/
dev-mac.compose.yml
File metadata and controls
75 lines (75 loc) · 1.77 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
69
70
71
72
73
74
75
version: '3.9'
services:
app:
image: "PYTHON_DEV_IMAGE"
container_name: rag-api
restart: always
command: uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- "$PWD/:/app"
ports:
- ${APP_PORT:-8000}:8000
depends_on:
pgsql:
condition: service_healthy
chromadb:
condition: service_healthy
networks:
- rag
pgsql:
container_name: rag-pgsql
image: postgres:17.3-alpine
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- ${DATABASE_PORT:-5432}:5432
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DATABASE_USERNAME}" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- rag
pgadmin:
container_name: rag-pgadmin
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- ${PGADMIN_PORT:-5050}:80
depends_on:
- pgsql
networks:
- rag
chromadb:
image: chromadb/chroma:0.6.3
container_name: chromadb
volumes:
- chromadb_data:/chroma/chroma
environment:
- IS_PERSISTENT=TRUE
- PERSIST_DIRECTORY=/chroma/chroma
- ANONYMIZED_TELEMETRY=${ANONYMIZED_TELEMETRY:-FALSE}
- ALLOW_RESET=TRUE
ports:
- "${CHROMADB_PORT:-8001}:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- rag
volumes:
postgres_data:
chromadb_data:
networks:
rag:
driver: bridge