-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
73 lines (71 loc) · 1.52 KB
/
docker-compose.yml
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
services:
db:
image: pgvector/pgvector:pg17
ports:
- 5433:5432
networks:
- trident
restart: always
environment:
- POSTGRES_DB=verceldb
- POSTGRES_USER=default
- POSTGRES_PASSWORD=password
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -h localhost -U ${POSTGRES_USER:-default} -d ${POSTGRES_DB:-verceldb}",
]
interval: 5s
timeout: 5s
retries: 10
ollama:
image: ollama/ollama
volumes:
- ollama:/root/.ollama
ports:
- 1143:11434
networks:
- trident
healthcheck:
test: ["CMD", "bash", "-c", "ollama list | grep qwen2.5:1.5b"]
interval: 10s
timeout: 10s
retries: 1000
x-ollama-pull:
image: ollama/ollama:latest
container_name: ollama-pull
volumes:
- ollama:/root/.ollama
entrypoint: /bin/sh
command:
- "-c"
- "sleep 5; OLLAMA_HOST=ollama:11434 ollama pull snowflake-arctic-embed:22m; OLLAMA_HOST=ollama:11434 ollama pull qwen2.5:1.5b"
networks:
- trident
nextjs:
build:
context: .
dockerfile: Dockerfile
command: npm run dev
depends_on:
db:
condition: service_healthy
ollama:
condition: service_healthy
env_file:
- .env.development
volumes:
- type: bind
source: ${LOCAL_WORKSPACE_FOLDER:-.}
target: /app
ports:
- 3000:3000
networks:
- trident
networks:
trident:
name: trident
volumes:
ollama:
overpass-db: