This repository was archived by the owner on Feb 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 271
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (53 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
53 lines (53 loc) · 1.38 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
version: "3.7"
services:
neo4j:
image: neo4j:5.9
restart: always
hostname: kgchat-neo4j
container_name: kgchat-neo4j
ports:
- 7474:7474
- 7687:7687
volumes:
- ./neo4j/data:/data
environment:
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- NEO4J_AUTH=neo4j/pleaseletmein
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
# Simple check testing whether the port 7474 is opened.
# If so, the instance running inside the container is considered as "healthy".
healthcheck:
test:
[
"CMD-SHELL",
"wget --no-verbose --tries=1 --spider localhost:7474 || exit 1",
]
backend:
build:
context: ../../
dockerfile: ./use_cases/kg_chat/backend/Dockerfile
hostname: kgchat-backend
restart: always
container_name: kgchat-backend
ports:
- 7860:7860
env_file:
- .env
volumes:
- .:/use_cases/kg_chat
- ../shared:/use_cases/shared
depends_on:
# Make sure the application only starts when the DB is indeed ready
neo4j:
condition: service_healthy
frontend:
build:
context: ../../
dockerfile: ./ui/Dockerfile
environment:
- VITE_KG_CHAT_BACKEND_ENDPOINT=ws://kg-chat-backend:7860/text2text
hostname: kg-chat-frontend
restart: always
container_name: kg-chat-frontend
ports:
- 4173:4173