■ ■ ■ ■ ■ ■
docker-compose/docker-compose.yml
| 1 | + | version: "3" |
| 2 | + | services: |
| 3 | + | neo4j: |
| 4 | + | container_name: neo4j |
| 5 | + | image: neo4j:4.1.1 |
| 6 | + | # Using volumes slows down the container. |
| 7 | + | #volumes: |
| 8 | + | # - ./neo4j/data:/data |
| 9 | + | # - ./neo4j/logs:/logs |
| 10 | + | # - ./neo4j/conf:/conf |
| 11 | + | # Set when sync container and local time |
| 12 | + | # - /etc/localtime:/etc/localtime:ro |
| 13 | + | ports: |
| 14 | + | - "7474:7474" |
| 15 | + | - "7687:7687" |
| 16 | + | environment: |
| 17 | + | - NEO4J_dbms_default__database=neo4j |
| 18 | + | - NEO4J_dbms_connector_bolt_listen__address=0.0.0.0:7687 |
| 19 | + | - NEO4J_dbms_connector_http_listen__address=0.0.0.0:7474 |
| 20 | + | # Performance tuning for JVM neo4j |
| 21 | + | # See more details: https://neo4j.com/developer/guide-performance-tuning/ |
| 22 | + | - NEO4J_dbms_memory_heap_max__size=4G |
| 23 | + | - NEO4J_dbms_memory_heap_initial__size=2G |
| 24 | + | - NEO4j_dbms_memory_pagecache_size=20G |
| 25 | + | # set default neo4j password |
| 26 | + | - NEO4J_AUTH=neo4j/password |
| 27 | + | networks: |
| 28 | + | - neo4j-network |
| 29 | + | |
| 30 | + | logontracer: |
| 31 | + | container_name: logontracer |
| 32 | + | build: ./LogonTracer/build |
| 33 | + | image: logontracer:latest |
| 34 | + | #volumes: |
| 35 | + | # Set when sync container and local time |
| 36 | + | # - /etc/localtime:/etc/localtime:ro |
| 37 | + | ports: |
| 38 | + | - "8080:8080" |
| 39 | + | environment: |
| 40 | + | - LTHOSTNAME=localhost |
| 41 | + | networks: |
| 42 | + | - neo4j-network |
| 43 | + | |
| 44 | + | networks: |
| 45 | + | neo4j-network: |
| 46 | + | external: true |
| 47 | + | |