■ ■ ■ ■ ■ ■
docker-compose-with-nginx/docker-compose.yml
| 1 | + | version: "3" |
| 2 | + | services: |
| 3 | + | neo4j: |
| 4 | + | container_name: neo4j |
| 5 | + | # image: neo4j:4.4.14-enterprise |
| 6 | + | image: neo4j:4.4.14 |
| 7 | + | volumes: |
| 8 | + | - ./neo4j/certificates:/var/lib/neo4j/certificates |
| 9 | + | # Using volumes slows down the container. |
| 10 | + | # - ./neo4j/data:/data |
| 11 | + | # - ./neo4j/logs:/logs |
| 12 | + | # - ./neo4j/conf:/conf |
| 13 | + | # Set when sync container and local time |
| 14 | + | # - /etc/localtime:/etc/localtime:ro |
| 15 | + | ports: |
| 16 | + | # - "7474:7474" |
| 17 | + | - "7687:7687" |
| 18 | + | environment: |
| 19 | + | - NEO4J_dbms_default__database=neo4j |
| 20 | + | - NEO4J_dbms_connector_bolt_listen__address=0.0.0.0:7687 |
| 21 | + | - NEO4J_dbms_connector_http_listen__address=0.0.0.0:7474 |
| 22 | + | - NEO4J_dbms_ssl_policy_bolt_enabled=true |
| 23 | + | - NEO4J_dbms_connector_bolt_tls__level=OPTIONAL |
| 24 | + | - NEO4J_dbms_ssl_policy_bolt_base__directory=/var/lib/neo4j/certificates/bolt |
| 25 | + | - NEO4J_dbms_ssl_policy_bolt_private__key=server.key |
| 26 | + | - NEO4J_dbms_ssl_policy_bolt_public__certificate=server.crt |
| 27 | + | # Performance tuning for JVM neo4j |
| 28 | + | # See more details: https://neo4j.com/developer/guide-performance-tuning/ |
| 29 | + | # - NEO4J_dbms_memory_heap_max__size=4G |
| 30 | + | # - NEO4J_dbms_memory_heap_initial__size=2G |
| 31 | + | # - NEO4j_dbms_memory_pagecache_size=20G |
| 32 | + | # set default neo4j password |
| 33 | + | - NEO4J_AUTH=neo4j/password |
| 34 | + | # if you use neo4j enterprise |
| 35 | + | # - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes |
| 36 | + | networks: |
| 37 | + | - neo4j-network |
| 38 | + | |
| 39 | + | logontracer: |
| 40 | + | container_name: logontracer |
| 41 | + | build: ./LogonTracer/build |
| 42 | + | image: logontracer:latest |
| 43 | + | depends_on: |
| 44 | + | - neo4j |
| 45 | + | #volumes: |
| 46 | + | # Set when sync container and local time |
| 47 | + | # - /etc/localtime:/etc/localtime:ro |
| 48 | + | # ports: |
| 49 | + | # - "8080:8080" |
| 50 | + | environment: |
| 51 | + | - LTHOSTNAME=localhost |
| 52 | + | networks: |
| 53 | + | - neo4j-network |
| 54 | + | |
| 55 | + | nginx: |
| 56 | + | container_name: nginx |
| 57 | + | image: nginx:latest |
| 58 | + | depends_on: |
| 59 | + | - neo4j |
| 60 | + | - logontracer |
| 61 | + | ports: |
| 62 | + | - "443:443" |
| 63 | + | - "80:80" |
| 64 | + | volumes: |
| 65 | + | - ./nginx/default.conf:/etc/nginx/conf.d/default.conf |
| 66 | + | - ./nginx/server.crt:/usr/local/nginx/conf/server.crt |
| 67 | + | - ./nginx/server.key:/usr/local/nginx/conf/server.key |
| 68 | + | networks: |
| 69 | + | - neo4j-network |
| 70 | + | |
| 71 | + | networks: |
| 72 | + | neo4j-network: |
| 73 | + | external: true |
| 74 | + | |