-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (83 loc) · 2.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (83 loc) · 2.02 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
88
services:
postgres:
build:
context: ./docker/opensql
dockerfile: Dockerfile
platform: linux/amd64
container_name: local-opensql
environment:
POSTGRES_DB: ${DB_NAME:-app}
POSTGRES_USER: ${DB_USER:-app}
POSTGRES_PASSWORD: ${DB_PASSWORD:-local_password}
ports:
- "${DB_PORT:-55432}:5432"
volumes:
- opensql_data:/var/lib/pgsql
- ./docker/opensql/vars.yml:/tmp/settings/vars/vars.yml:ro
healthcheck:
test: ["CMD-SHELL", "/usr/pgsql-14/bin/pg_isready -U app -d app"]
interval: 10s
timeout: 5s
retries: 10
start_period: 90s
networks:
- docgrid-local
minio:
image: minio/minio
container_name: docgrid-minio
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin1234
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 10s
timeout: 5s
retries: 5
networks:
- docgrid-local
embedding-server:
build:
context: ./embedding-server
dockerfile: Dockerfile
container_name: docgrid-embedding
ports:
- "8000:8000"
volumes:
- huggingface-cache:/root/.cache/huggingface
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 5
start_period: 900s
networks:
- docgrid-local
ollama:
image: ollama/ollama
container_name: docgrid-ollama
ports:
- "127.0.0.1:11434:11434"
volumes:
- ollama-data:/root/.ollama
healthcheck:
test: ["CMD-SHELL", "ollama list || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
networks:
- docgrid-local
networks:
docgrid-local:
volumes:
opensql_data:
name: opensql_data
minio-data:
huggingface-cache:
ollama-data: