-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (80 loc) · 1.87 KB
/
Copy pathdocker-compose.yml
File metadata and controls
87 lines (80 loc) · 1.87 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
76
77
78
79
80
81
82
83
84
85
86
87
services:
pdf_processor_service:
build:
context: .
dockerfile: ./pdf_processor_service/Dockerfile
container_name: pdf_processor_service
ports:
- "8000:8000"
env_file:
- ./pdf_processor_service/.env
chat_service:
build:
context: .
dockerfile: ./chat_service/Dockerfile
container_name: chat_service
ports:
- "8001:8000"
env_file:
- ./chat_service/.env
pdf_extraction:
build:
context: .
dockerfile: ./pdf_extraction_service/Dockerfile
container_name: pdf_extraction_service
ports:
- "8002:8000"
depends_on:
- minio
nginx_service:
build:
context: .
dockerfile: ./nginx_service/Dockerfile
ports:
- "80:80"
env_file:
- ./nginx_service/.env
depends_on:
- pdf_extraction
- pdf_processor_service
- chat_service
redis:
container_name: redis
image: redis:7.4.4-alpine
expose:
- "6379"
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000" # S3 API
- "9001:9001" # Admin UI
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
volumes:
- minio-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
timeout: 5s
retries: 5
createbucket:
image: minio/mc
container_name: createbucket
depends_on:
- minio
entrypoint: >
/bin/sh -c "
echo 'Waiting for MinIO to be ready...';
until mc alias set local http://minio:9000 minioadmin minioadmin; do
sleep 2;
done;
echo 'MinIO is healthy, continuing...';
mc mb -p local/omnifiles;
mc policy set none local/omnifiles
exit 0;
"
volumes:
minio-data: