forked from GLEAM-Lab/KGCompass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.5 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
services:
base:
build:
context: .
dockerfile: docker/base/Dockerfile
image: kgcompass-base:latest
neo4j:
# Build the image from the Dockerfile in the current directory
build:
context: .
dockerfile: Dockerfile
container_name: kgcompass-neo4j
ports:
- "7474:7474" # HTTP
- "7687:7687" # Bolt
volumes:
# Mount named volumes for data persistence
- neo4j-data:/data
- neo4j-logs:/logs
environment:
- http_proxy=http://172.27.16.1:7890
- https_proxy=http://172.27.16.1:7890
- no_proxy=localhost,127.0.0.1
restart: unless-stopped
app:
# Build the image from the app.Dockerfile, which depends on the base image
build:
context: .
dockerfile: app.Dockerfile
image: kgcompass-app:latest
container_name: kgcompass-app
working_dir: /opt/KGCompass
# Mount the local directory to the container for development
volumes:
- .:/opt/KGCompass
- ./playground:/opt/KGCompass/playground
# Load environment variables from a .env file
env_file:
- .env
# Set the Neo4j URI for the app to connect to the neo4j service
environment:
- NEO4J_URI=bolt://neo4j:7687
# Request GPU access for this service
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# Keep the container running
stdin_open: true
tty: true
volumes:
neo4j-data:
neo4j-logs: