-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.08 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
services:
hayhooks:
build: .
container_name: hayhooks-backend
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- HAYHOOKS_HOST=0.0.0.0
- HAYHOOKS_PORT=1416
- HAYSTACK_DEVICE=cpu
- HAYSTACK_DEFAULT_DEVICE=cpu
volumes:
- ./qdrant_storage:/app/qdrant_storage
# Don't expose port directly - only accessible via nginx
expose:
- "1416"
networks:
- hayhooks-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:1416/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
nginx:
image: nginx:alpine
container_name: hayhooks-nginx
ports:
- "8080:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/.htpasswd:/etc/nginx/.htpasswd:ro
networks:
- hayhooks-network
depends_on:
- hayhooks
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
hayhooks-network:
driver: bridge