forked from MarlBurroW/kinbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (80 loc) · 1.88 KB
/
docker-compose.yml
File metadata and controls
85 lines (80 loc) · 1.88 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
services:
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/certs:/etc/letsencrypt
- ./nginx/www:/var/www/certbot
networks:
- default
depends_on:
- kinbot
restart: unless-stopped
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./nginx/certs:/etc/letsencrypt
- ./nginx/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
- default
kinbot:
build:
context: .
container_name: kinbot
env_file: .env
environment:
- NODE_ENV=production
- PORT=3000
- HOST=0.0.0.0
volumes:
- ./data:/app/data
- ./agents:/app/agents
depends_on:
neo4j:
condition: service_healthy
hf-embeddings:
condition: service_healthy
networks:
- default
restart: unless-stopped
hf-embeddings:
image: ghcr.io/huggingface/text-embeddings-inference:cpu-latest
container_name: hf_embeddings
environment:
- MODEL_ID=BAAI/bge-base-en-v1.5
- PORT=80
volumes:
- ./hf_cache:/data
healthcheck:
test: [ "CMD-SHELL", "curl -f http://localhost:80/health || exit 1" ]
interval: 10s
networks:
- default
restart: unless-stopped
neo4j:
image: neo4j:5
container_name: kinbot_graph
ports:
- "7474:7474"
- "7687:7687"
env_file: .env
environment:
- NEO4J_AUTH=${NEO4J_AUTH}
- NEO4J_PLUGINS=["apoc"]
volumes:
- ./neo4j-data:/data
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider localhost:7474 || exit 1" ]
interval: 10s
networks:
- default
restart: unless-stopped
networks:
default:
driver: bridge