-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.base.yaml
More file actions
64 lines (59 loc) · 1.38 KB
/
compose.base.yaml
File metadata and controls
64 lines (59 loc) · 1.38 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
services:
db:
image: pgvector/pgvector:pg16
container_name: scriptium-db
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- scriptium-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
backend:
container_name: scriptium-backend
build:
context: ../scriptium-backend
dockerfile: Dockerfile
networks:
- scriptium-network
depends_on:
db:
condition: service_healthy
ollama:
condition: service_healthy
frontend:
container_name: scriptium-frondtend
build:
context: ../scriptium-frontend
args:
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
networks:
- scriptium-network
ollama:
container_name: scriptium-ollama
image: ollama/ollama:latest
volumes:
- ollama_data:/root/.ollama
networks:
- scriptium-network
entrypoint: /bin/sh
command: >
-c "ollama serve &
sleep 10 &&
ollama pull mxbai-embed-large &&
ollama pull nomic-embed-text &&
wait"
healthcheck:
test: ["CMD-SHELL", "ollama list | grep -q 'nomic-embed-text'"]
interval: 10s
timeout: 10s
retries: 20
start_period: 30s
networks:
scriptium-network:
driver: bridge
volumes:
postgres_data:
ollama_data: