This repository was archived by the owner on Sep 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.honcho.yml
More file actions
62 lines (58 loc) · 1.59 KB
/
Copy pathdocker-compose.honcho.yml
File metadata and controls
62 lines (58 loc) · 1.59 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
services:
# --- Honcho (optional) ---
# To enable: docker compose -f docker-compose.yml -f docker-compose.honcho.yml up -d
# See docs/HONCHO_SETUP.md for full instructions
honcho-api:
build:
context: vendor/honcho
dockerfile: Dockerfile
entrypoint: ["sh", "docker/entrypoint.sh"]
depends_on:
honcho-db:
condition: service_healthy
honcho-redis:
condition: service_healthy
ports:
- "8000:8000"
env_file:
- .env.honcho
environment:
- DB_CONNECTION_URI=postgresql+psycopg://honcho:${HONCHO_DB_PASSWORD:-honcho}@honcho-db:5432/honcho
- CACHE_ENABLED=true
- METRICS_ENABLED=false
volumes:
- ./honcho/config.toml:/app/config.toml:ro
restart: unless-stopped
honcho-db:
image: pgvector/pgvector:pg15
container_name: honcho-db
ports:
- "127.0.0.1:5432:5432"
command: ["postgres", "-c", "max_connections=200"]
environment:
- POSTGRES_DB=honcho
- POSTGRES_USER=honcho
- POSTGRES_PASSWORD=${HONCHO_DB_PASSWORD:-honcho}
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- honcho-pgdata:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U honcho -d honcho"]
interval: 5s
timeout: 5s
retries: 5
honcho-redis:
image: redis:8.2
container_name: honcho-redis
ports:
- "127.0.0.1:6379:6379"
volumes:
- honcho-redis-data:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping"]
interval: 5s
timeout: 5s
retries: 5
volumes:
honcho-pgdata:
honcho-redis-data: