-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
95 lines (89 loc) · 2.05 KB
/
docker-compose.yml
File metadata and controls
95 lines (89 loc) · 2.05 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
services:
db:
image: pgvector/pgvector:pg17
container_name: trawl_postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: trawl_db
ports:
- "6000:5432"
volumes:
- db_data:/var/lib/postgresql/data
- ./postgres-init:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d trawl_db"]
interval: 5s
timeout: 5s
retries: 5
networks:
- trawl_net
redis:
image: redis:7-alpine
container_name: trawl_redis
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- trawl_net
searxng:
image: searxng/searxng:latest
container_name: trawl_searxng
restart: always
environment:
- SEARXNG_BASE_URL=http://localhost:8080
ports:
- "8888:8080"
volumes:
- ./searxng:/etc/searxng:rw
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/healthz"]
interval: 10s
timeout: 5s
retries: 5
networks:
- trawl_net
backend:
build: .
container_name: trawl_backend
restart: always
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/trawl_db
- SEARXNG_BASE_URL=http://searxng:8080
- API_BASE=http://localhost:8000
- OLLAMA_BASE_URL=http://ollama:11434
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
- DEFAULT_MODEL=${DEFAULT_MODEL:-}
ports:
- "8000:8000"
volumes:
- trawl_config:/root/.trawl
depends_on:
db:
condition: service_healthy
searxng:
condition: service_healthy
networks:
- trawl_net
ollama:
image: ollama/ollama:latest
container_name: trawl_ollama
restart: always
volumes:
- ollama_data:/root/.ollama
networks:
- trawl_net
networks:
trawl_net:
driver: bridge
volumes:
db_data:
trawl_config:
ollama_data: