-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
116 lines (106 loc) · 2.93 KB
/
Copy pathdocker-compose.yml
File metadata and controls
116 lines (106 loc) · 2.93 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
services:
postgres:
build: .
container_name: postgresql-maximalism
environment:
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
- POSTGRES_DB=${PGDATABASE}
command: >
postgres
-c shared_preload_libraries="timescaledb,pg_search,pg_partman_bgw"
-c cron.database_name="${PGDATABASE}"
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
- ./init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
healthcheck:
test: ["CMD", "pg_isready", "-U", "${PGUSER}"]
interval: 10s
retries: 5
restart: unless-stopped
whodb:
image: clidey/whodb:0.53.0
container_name: whodb
environment:
- WHODB_OLLAMA_HOST=ollama
ports:
- "8080:8080"
restart: unless-stopped
minio:
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
volumes:
- minio:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 10s
retries: 5
restart: unless-stopped
command: server /data --console-address ":9001"
minio-mc:
image: minio/mc:RELEASE.2025-04-16T18-13-26Z
container_name: minio-mc
depends_on:
minio:
condition: service_healthy
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
- MINIO_BUCKET_NAME=${MINIO_BUCKET_NAME}
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set minio http://minio:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD;
/usr/bin/mc mb --ignore-existing minio/${MINIO_BUCKET_NAME};
"
restart: no
ollama:
image: ollama/ollama
container_name: ollama
ports:
- "11434:11434"
volumes:
- ollama_models:/root/.ollama
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
runtime: nvidia
restart: unless-stopped
ollama-models:
image: alpine/curl:latest
container_name: ollama-models
depends_on:
- ollama
entrypoint: >
/bin/sh -c "
curl -X POST http://ollama:11434/api/pull \\
-H 'Content-Type: application/json' \\
-d '{\"name\": \"deepseek-r1:1.5b\"}'
curl -X POST http://ollama:11434/api/pull \\
-H 'Content-Type: application/json' \\
-d '{\"name\": \"nomic-embed-text\"}'
"
restart: no
pgai-worker:
image: timescale/pgai-vectorizer-worker:v0.9.2
container_name: pgai-worker
depends_on:
- ollama
environment:
- PGAI_VECTORIZER_WORKER_DB_URL=postgres://${PGUSER}:${PGPASSWORD}@postgres:5432/${PGDATABASE}
- OLLAMA_HOST=http://ollama:11434
command: [ "--poll-interval", "5s" ]
restart: unless-stopped
volumes:
pg_data:
minio:
ollama_models: