-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
121 lines (113 loc) · 3.3 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
121 lines (113 loc) · 3.3 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
117
118
119
120
121
name: tapes
services:
postgres:
image: public.ecr.aws/g4e5l3z3/papercomputeco/postgres:17.7-pgduckdb-1.1.1
environment:
POSTGRES_DB: tapes
POSTGRES_USER: tapes
POSTGRES_PASSWORD: tapes
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U tapes -d tapes"]
interval: 1s
timeout: 3s
retries: 30
ollama:
image: ollama/ollama
ports:
- "127.0.0.1:11434:11434"
volumes:
- ~/.ollama:/root/.ollama
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 5s
timeout: 5s
retries: 30
# Pulls the default embedding model into the host's ~/.ollama directory (the
# volume bind-mounted into the ollama service), so semantic search works out of
# the box after `docker compose up`. Once cached, re-running is a cheap no-op;
# `restart: on-failure` retries transient network/registry failures.
ollama-pull:
image: ollama/ollama
command: pull embeddinggemma
restart: on-failure
environment:
OLLAMA_HOST: http://ollama:11434
depends_on:
ollama:
condition: service_healthy
skills:
image: public.ecr.aws/g4e5l3z3/papercomputeco/skills-cassette:latest
environment:
CASSETTE_CORE_URL: http://tapes.svc:8081
CASSETTE_LLM_PROVIDER: ollama
CASSETTE_LLM_BASE_URL: http://ollama:11434
TAPES_DATABASE_URL: postgres://tapes:tapes@postgres:5432/tapes?sslmode=disable
ports:
- "127.0.0.1:9999:9998"
depends_on:
postgres:
condition: service_healthy
search:
image: public.ecr.aws/g4e5l3z3/papercomputeco/search-cassette:latest
environment:
CASSETTE_EMBEDDING_PROVIDER: ollama
CASSETTE_EMBEDDING_TARGET: http://ollama:11434
CASSETTE_WAIT_FOR_DB: "true"
TAPES_DATABASE_URL: postgres://tapes:tapes@postgres:5432/tapes?sslmode=disable
ports:
- "127.0.0.1:9998:9998"
depends_on:
postgres:
condition: service_healthy
ollama-pull:
condition: service_completed_successfully
export:
image: public.ecr.aws/g4e5l3z3/papercomputeco/export-cassette:latest
environment:
CASSETTE_NAME: export
CASSETTE_LISTEN: 0.0.0.0:9998
TAPES_DATABASE_URL: postgres://tapes:tapes@postgres:5432/tapes?sslmode=disable
ports:
- "127.0.0.1:9997:9998"
depends_on:
postgres:
condition: service_healthy
tapes:
build:
dockerfile: Dockerfile
command: >-
serve
--provider ollama
--upstream http://ollama:11434
--postgres postgres://tapes:tapes@postgres:5432/tapes?sslmode=disable
--cassettes http://skills:9998/openapi,http://search:9998/openapi,http://export:9998/openapi
--cassette-refresh 10s
--log-level=debug
ports:
- "127.0.0.1:8080:8080"
- "127.0.0.1:8081:8081"
- "127.0.0.1:8082:8082"
volumes:
- tapes-data:/data
networks:
default:
aliases:
- tapes.svc
depends_on:
postgres:
condition: service_healthy
skills:
condition: service_started
search:
condition: service_started
export:
condition: service_started
ollama:
condition: service_started
volumes:
postgres-data:
tapes-data: