forked from fangyisheng/DeepRAG
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (56 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
61 lines (56 loc) · 1.37 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
networks:
app-network:
driver: bridge
volumes:
pg_data:
minio_data:
app_data:
services:
db:
image: postgres:latest
container_name: deeprag-db
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${PG_EXPOSED_PORT}:5432"
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- app-network
restart: unless-stopped
minio:
image: minio/minio:latest
container_name: deeprag-minio
ports:
- "${MINIO_EXPOSED_PORT}:9000"
- "${MINIO_CONSOLE_EXPOSED_PORT}:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
networks:
- app-network
restart: unless-stopped
app:
build:
context: .
dockerfile: Dockerfile
container_name: deeprag-app
environment:
- MINIO_ENDPOINT=deeprag-minio:9000
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@deeprag-db:5432/${POSTGRES_DB}?schema=public
depends_on:
- db
- minio
command: [ "/app/src/deeprag/entrypoint.sh" ]
ports:
- "${DEEPRAG_APP_PORT}:8000"
volumes:
- app_data:/app
networks:
- app-network
restart: unless-stopped