-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.localhost.yml
35 lines (33 loc) · 1.3 KB
/
docker-compose.localhost.yml
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
services:
hubmap-neo4j-localhost:
image: hubmap/neo4j-image:5.20.0
hostname: hubmap-neo4j-localhost
container_name: hubmap-neo4j-localhost
deploy:
# Modify this based on the actual VM resource
resources:
limits:
memory: 6G
reservations:
memory: 4G
# Allow the JVM to read cgroup limits
# -XX:+UseContainerSupport is enabled by default on linux machines,
# this feature was introduced in java10 then backported to Java-8u191, the base image comes with OpenJDK(build 1.8.0_232-b09)
# -XX:MaxRAMPercentage (double) is depending on the max memory limit assigned to the contaienr
# When the container has > 1G memory, set -XX:MaxRAMPercentage=75.0 is good (doesn't waste too many resources)
environment:
- _JAVA_OPTIONS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0
ports:
- "7474:7474"
- "7687:7687"
volumes:
# Mount the neo4j configuration file to container
- "./localhost/neo4j.conf:/usr/src/app/neo4j/conf/neo4j.conf"
# Mount the data to container
- "./localhost/data:/usr/src/app/neo4j/data"
networks:
- gateway_hubmap
networks:
# This is the network created by gateway to enable communicaton between multiple docker-compose projects
gateway_hubmap:
external: true