├── Dockerfile ├── LICENSE ├── README.md ├── compose └── docker-compose.yml ├── conf └── neo4j │ ├── mazerunner.properties │ └── neo4j.conf ├── plugins ├── apoc-3.5.0.4-all.jar └── extension-1.1.2-RELEASE-jar-with-dependencies.jar └── sbin └── bootstrap.sh /Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # Dockerizing Neo4j graph database (http://www.github.com/kbastani/docker-neo4j) 3 | # 4 | FROM neo4j:3.5.9 5 | MAINTAINER K.B. Name 6 | 7 | ADD plugins /plugins 8 | ADD conf/neo4j /var/lib/neo4j/conf 9 | 10 | ENV NEO4J_AUTH=none 11 | ENV HDFS_HOST=hdfs://hdfs:9000 12 | 13 | EXPOSE 7474 14 | EXPOSE 7687 15 | EXPOSE 1337 16 | 17 | COPY sbin/bootstrap.sh /etc/bootstrap.sh 18 | RUN chown root:root /etc/bootstrap.sh && \ 19 | chmod 777 /etc/bootstrap.sh 20 | 21 | RUN mkdir /import 22 | 23 | # Mount a volume for persistent data 24 | VOLUME /opt/data 25 | 26 | # Set the bootstrap script on container run 27 | ENV BOOTSTRAP /etc/bootstrap.sh 28 | ENTRYPOINT ["/etc/bootstrap.sh"] 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Neo4j Community Edition 2.2.3 2 | 3 | This repository contains a Docker image of the latest version (2.2.3) of the [Neo4j community server](http://www.neo4j.com/download). This Docker image of Neo4j provides instructions on how to map a Docker data volume to an already existing `data/graph.db` store file located on your host machine. 4 | 5 | # What is Neo4j? 6 | 7 | Sponsored by Neo Technology, Neo4j is an open-source NoSQL graph database implemented in Java and Scala. With development starting in 2003, it has been publicly available since 2007. The source code and issue tracking are available on GitHub, with support readily available on Stack Overflow and the Neo4j Google group. Limited only by hardware, Neo4j is used today by hundreds of thousands of users in almost all industries. Use cases include matchmaking, network management, software analytics, scientific research, routing, organizational and project management, recommendations, social networks, and more. 8 | 9 | # Build Docker Image 10 | 11 | To build the source from the Dockerfile as an image: 12 | 13 | ``` 14 | docker build -t kbastani/docker-neo4j . 15 | ``` 16 | 17 | # Pull Docker Image 18 | 19 | This image is automatically built and is available from the Docker registry. Use the following `pull` command to download the image to your local Docker server. 20 | 21 | ``` 22 | docker pull kbastani/docker-neo4j 23 | ``` 24 | 25 | # Start Neo4j Container 26 | 27 | To run the Neo4j image inside a container after either building it or pulling it, run the following docker command. 28 | 29 | ``` 30 | docker run -d -p 7474:7474 -v /Users//path/to/neo4j/data:/opt/data --name graphdb kbastani/docker-neo4j 31 | ``` 32 | 33 | Make sure to replace the `` with the user directory that contains your Neo4j `graph.db` data store files. 34 | 35 | Keep in mind that store upgrades are not enabled in the Neo4j configuration by default. The data store version of your Neo4j files on your host machine must be equal to the latest release of Neo4j at the time of building this image. 36 | 37 | The `/path/to/neo4j/data` should be the relative path from your host machine's user home directory to `neo4j-community-#.#.#/data` directory that has the `graph.db` database you want to mount to the docker container as a volume. 38 | 39 | ## boot2docker 40 | 41 | If you're using `boot2docker` on Mac OS X then you'll need to do the following steps to access the Neo4j browser on the host machine. 42 | 43 | ### Add a route to the container 44 | 45 | ``` 46 | $ sudo route add -net 172.17.0.0/16 $(boot2docker ip 2> /dev/null) 47 | ``` 48 | 49 | This command adds a route from the `graphdb` container's IP (internal), to the VirtualBox `boot2docker` VM server IP (external). 50 | 51 | Now we need to get the internal IP of the container. Run the following command: 52 | 53 | ``` 54 | $ docker inspect --format="{{.NetworkSettings.IPAddress}}" graphdb 55 | 172.17.0.16 56 | ``` 57 | 58 | Now that we know what the internal IP address is of the `graphdb` container, we can access it from the browser or via `curl`. 59 | 60 | ``` 61 | $ curl 172.17.0.16:7474 62 | { 63 | "management" : "http://172.17.0.16:7474/db/manage/", 64 | "data" : "http://172.17.0.16:7474/db/data/" 65 | }% 66 | ``` 67 | 68 | ### Add a host name 69 | 70 | All that is left now is to map the container's IP to a host name on the host machine. I've chosen `graphdb`, however, you're free to map it to whatever host name you'd prefer (except for localhost). 71 | 72 | ``` 73 | echo 172.17.0.16 graphdb | sudo tee -a /etc/hosts 74 | ``` 75 | 76 | The Neo4j server container is now accessible on your host machine with the following URL. 77 | 78 | ``` 79 | http://graphdb:7474/browser 80 | ``` 81 | 82 | ### Alternative approach for Mac OS X: Use boot2docker ip 83 | 84 | If you don't want to set up a route, you can just use the boot2docker ip to connect to the container. 85 | 86 | ```bash 87 | boot2docker ip # usually returns 192.168.59.103 88 | ``` 89 | 90 | The container can be reached from the host via the IP above. Try to access neo4j via your browser `http://192.168.59.103:7474` or via `curl` 91 | ```bash 92 | $ curl 192.168.59.103:7474 93 | { 94 | "management" : "http://172.17.0.16:7474/db/manage/", 95 | "data" : "http://172.17.0.16:7474/db/data/" 96 | }% 97 | ``` 98 | -------------------------------------------------------------------------------- /compose/docker-compose.yml: -------------------------------------------------------------------------------- 1 | neo4j: 2 | image: neo4j:3.5.9 3 | ports: 4 | - "7474:7474" 5 | - "7687:7687" 6 | - "1337:1337" 7 | volumes: 8 | - /app/plugins:/plugins 9 | - /app/conf/neo4j:/var/lib/neo4j/conf 10 | - /var/run/docker.sock:/var/run/docker.sock 11 | environment: 12 | - NEO4J_AUTH=none 13 | - HDFS_HOST=hdfs://hdfs:9000 14 | -------------------------------------------------------------------------------- /conf/neo4j/mazerunner.properties: -------------------------------------------------------------------------------- 1 | ################################################################ 2 | # Neo4j Mazerunner configuration 3 | # 4 | ################################################################ 5 | 6 | #*************************************************************** 7 | # HDFS configuration 8 | #*************************************************************** 9 | 10 | # Location of the hadoop configuration files describing the file system attributes 11 | org.mazerunner.hadoop.core.path=/lib/hadoop-2.4.1/etc/hadoop/core-site.xml 12 | org.mazerunner.hadoop.hdfs.path=/lib/hadoop-2.4.1/etc/hadoop/hdfs-site.xml 13 | 14 | # The HDFS file system root URI 15 | org.mazerunner.hadoop.hdfs.uri=hdfs://hdfs:9000 16 | 17 | #*************************************************************** 18 | # Agent job definitions 19 | #*************************************************************** 20 | 21 | # The relationship type to extract the subgraph from 22 | org.mazerunner.job.relationshiptype=KNOWS 23 | 24 | # RabbitMQ NODENAME 25 | org.mazerunner.rabbitmq.nodename=mazerunner 26 | -------------------------------------------------------------------------------- /conf/neo4j/neo4j.conf: -------------------------------------------------------------------------------- 1 | #***************************************************************** 2 | # Neo4j configuration 3 | # 4 | # For more details and a complete list of settings, please see 5 | # https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/ 6 | #***************************************************************** 7 | 8 | # The name of the database to mount 9 | dbms.active_database=graph.db 10 | 11 | # Paths of directories in the installation. 12 | #dbms.directories.data=data 13 | dbms.directories.plugins=/plugins 14 | #dbms.directories.certificates=certificates 15 | #dbms.directories.lib=lib 16 | #dbms.directories.run=run 17 | 18 | # This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or comment it out to 19 | # allow files to be loaded from anywhere in the filesystem; this introduces possible security problems. See the 20 | # `LOAD CSV` section of the manual for details. 21 | dbms.directories.import=/import 22 | 23 | # Whether requests to Neo4j are authenticated. 24 | # To disable authentication, uncomment this line 25 | 26 | # Enable this to be able to upgrade a store from an older version. 27 | #dbms.allow_upgrade=true 28 | 29 | # Java Heap Size: by default the Java heap size is dynamically 30 | # calculated based on available system resources. 31 | # Uncomment these lines to set specific initial and maximum 32 | # heap size. 33 | 34 | # The amount of memory to use for mapping the store files, in bytes (or 35 | # kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g'). 36 | # If Neo4j is running on a dedicated server, then it is generally recommended 37 | # to leave about 2-4 gigabytes for the operating system, give the JVM enough 38 | # heap to hold all your transaction state and query context, and then leave the 39 | # rest for the page cache. 40 | # The default page cache memory assumes the machine is dedicated to running 41 | # Neo4j, and is heuristically set to 50% of RAM minus the max Java heap size. 42 | 43 | #***************************************************************** 44 | # Network connector configuration 45 | #***************************************************************** 46 | 47 | # With default configuration Neo4j only accepts local connections. 48 | # To accept non-local connections, uncomment this line: 49 | 50 | # You can also choose a specific network interface, and configure a non-default 51 | # port for each connector, by setting their individual listen_address. 52 | 53 | # The address at which this server can be reached by its clients. This may be the server's IP address or DNS name, or 54 | # it may be the address of a reverse proxy which sits in front of the server. This setting may be overridden for 55 | # individual connectors below. 56 | #dbms.connectors.default_advertised_address=localhost 57 | 58 | # You can also choose a specific advertised hostname or IP address, and 59 | # configure an advertised port for each connector, by setting their 60 | # individual advertised_address. 61 | 62 | # Bolt connector 63 | dbms.connector.bolt.enabled=true 64 | #dbms.connector.bolt.tls_level=OPTIONAL 65 | 66 | # HTTP Connector. There can be zero or one HTTP connectors. 67 | dbms.connector.http.enabled=true 68 | 69 | # HTTPS Connector. There can be zero or one HTTPS connectors. 70 | dbms.connector.https.enabled=true 71 | 72 | # Number of Neo4j worker threads. 73 | #dbms.threads.worker_count= 74 | 75 | #***************************************************************** 76 | # SSL system configuration 77 | #***************************************************************** 78 | 79 | # Names of the SSL policies to be used for the respective components. 80 | 81 | # The legacy policy is a special policy which is not defined in 82 | # the policy configuration section, but rather derives from 83 | # dbms.directories.certificates and associated files 84 | # (by default: neo4j.key and neo4j.cert). Its use will be deprecated. 85 | 86 | # The policies to be used for connectors. 87 | # 88 | # N.B: Note that a connector must be configured to support/require 89 | # SSL/TLS for the policy to actually be utilized. 90 | # 91 | # see: dbms.connector.*.tls_level 92 | 93 | #bolt.ssl_policy=legacy 94 | #https.ssl_policy=legacy 95 | 96 | #***************************************************************** 97 | # SSL policy configuration 98 | #***************************************************************** 99 | 100 | # Each policy is configured under a separate namespace, e.g. 101 | # dbms.ssl.policy..* 102 | # 103 | # The example settings below are for a new policy named 'default'. 104 | 105 | # The base directory for cryptographic objects. Each policy will by 106 | # default look for its associated objects (keys, certificates, ...) 107 | # under the base directory. 108 | # 109 | # Every such setting can be overridden using a full path to 110 | # the respective object, but every policy will by default look 111 | # for cryptographic objects in its base location. 112 | # 113 | # Mandatory setting 114 | 115 | #dbms.ssl.policy.default.base_directory=certificates/default 116 | 117 | # Allows the generation of a fresh private key and a self-signed 118 | # certificate if none are found in the expected locations. It is 119 | # recommended to turn this off again after keys have been generated. 120 | # 121 | # Keys should in general be generated and distributed offline 122 | # by a trusted certificate authority (CA) and not by utilizing 123 | # this mode. 124 | 125 | #dbms.ssl.policy.default.allow_key_generation=false 126 | 127 | # Enabling this makes it so that this policy ignores the contents 128 | # of the trusted_dir and simply resorts to trusting everything. 129 | # 130 | # Use of this mode is discouraged. It would offer encryption but no security. 131 | 132 | #dbms.ssl.policy.default.trust_all=false 133 | 134 | # The private key for the default SSL policy. By default a file 135 | # named private.key is expected under the base directory of the policy. 136 | # It is mandatory that a key can be found or generated. 137 | 138 | #dbms.ssl.policy.default.private_key= 139 | 140 | # The private key for the default SSL policy. By default a file 141 | # named public.crt is expected under the base directory of the policy. 142 | # It is mandatory that a certificate can be found or generated. 143 | 144 | #dbms.ssl.policy.default.public_certificate= 145 | 146 | # The certificates of trusted parties. By default a directory named 147 | # 'trusted' is expected under the base directory of the policy. It is 148 | # mandatory to create the directory so that it exists, because it cannot 149 | # be auto-created (for security purposes). 150 | # 151 | # To enforce client authentication client_auth must be set to 'require'! 152 | 153 | #dbms.ssl.policy.default.trusted_dir= 154 | 155 | # Client authentication setting. Values: none, optional, require 156 | # The default is to require client authentication. 157 | # 158 | # Servers are always authenticated unless explicitly overridden 159 | # using the trust_all setting. In a mutual authentication setup this 160 | # should be kept at the default of require and trusted certificates 161 | # must be installed in the trusted_dir. 162 | 163 | #dbms.ssl.policy.default.client_auth=require 164 | 165 | # It is possible to verify the hostname that the client uses 166 | # to connect to the remote server. In order for this to work, the server public 167 | # certificate must have a valid CN and/or matching Subject Alternative Names. 168 | 169 | # Note that this is irrelevant on host side connections (sockets receiving 170 | # connections). 171 | 172 | # To enable hostname verification client side on nodes, set this to true. 173 | 174 | #dbms.ssl.policy.default.verify_hostname=false 175 | 176 | # A comma-separated list of allowed TLS versions. 177 | # By default only TLSv1.2 is allowed. 178 | 179 | #dbms.ssl.policy.default.tls_versions= 180 | 181 | # A comma-separated list of allowed ciphers. 182 | # The default ciphers are the defaults of the JVM platform. 183 | 184 | #dbms.ssl.policy.default.ciphers= 185 | 186 | #***************************************************************** 187 | # Logging configuration 188 | #***************************************************************** 189 | 190 | # To enable HTTP logging, uncomment this line 191 | #dbms.logs.http.enabled=true 192 | 193 | # Number of HTTP logs to keep. 194 | #dbms.logs.http.rotation.keep_number=5 195 | 196 | # Size of each HTTP log that is kept. 197 | #dbms.logs.http.rotation.size=20m 198 | 199 | # To enable GC Logging, uncomment this line 200 | #dbms.logs.gc.enabled=true 201 | 202 | # GC Logging Options 203 | # see http://docs.oracle.com/cd/E19957-01/819-0084-10/pt_tuningjava.html#wp57013 for more information. 204 | #dbms.logs.gc.options=-XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+PrintTenuringDistribution 205 | 206 | # For Java 9 and newer GC Logging Options 207 | # see https://docs.oracle.com/javase/10/tools/java.htm#JSWOR-GUID-BE93ABDC-999C-4CB5-A88B-1994AAAC74D5 208 | #dbms.logs.gc.options=-Xlog:gc*,safepoint,age*=trace 209 | 210 | # Number of GC logs to keep. 211 | #dbms.logs.gc.rotation.keep_number=5 212 | 213 | # Size of each GC log that is kept. 214 | #dbms.logs.gc.rotation.size=20m 215 | 216 | # Size threshold for rotation of the debug log. If set to zero then no rotation will occur. Accepts a binary suffix "k", 217 | # "m" or "g". 218 | #dbms.logs.debug.rotation.size=20m 219 | 220 | # Maximum number of history files for the internal log. 221 | #dbms.logs.debug.rotation.keep_number=7 222 | 223 | #***************************************************************** 224 | # Miscellaneous configuration 225 | #***************************************************************** 226 | 227 | # Enable this to specify a parser other than the default one. 228 | #cypher.default_language_version=3.0 229 | 230 | # Determines if Cypher will allow using file URLs when loading data using 231 | # `LOAD CSV`. Setting this value to `false` will cause Neo4j to fail `LOAD CSV` 232 | # clauses that load data from the file system. 233 | #dbms.security.allow_csv_import_from_file_urls=true 234 | 235 | 236 | # Value of the Access-Control-Allow-Origin header sent over any HTTP or HTTPS 237 | # connector. This defaults to '*', which allows broadest compatibility. Note 238 | # that any URI provided here limits HTTP/HTTPS access to that URI only. 239 | #dbms.security.http_access_control_allow_origin=* 240 | 241 | # Value of the HTTP Strict-Transport-Security (HSTS) response header. This header 242 | # tells browsers that a webpage should only be accessed using HTTPS instead of HTTP. 243 | # It is attached to every HTTPS response. Setting is not set by default so 244 | # 'Strict-Transport-Security' header is not sent. Value is expected to contain 245 | # dirictives like 'max-age', 'includeSubDomains' and 'preload'. 246 | #dbms.security.http_strict_transport_security= 247 | 248 | # Retention policy for transaction logs needed to perform recovery and backups. 249 | 250 | # Only allow read operations from this Neo4j instance. This mode still requires 251 | # write access to the directory for lock purposes. 252 | dbms.read_only=false 253 | 254 | # Comma separated list of JAX-RS packages containing JAX-RS resources, one 255 | # package name for each mountpoint. The listed package names will be loaded 256 | # under the mountpoints specified. Uncomment this line to mount the 257 | # org.neo4j.examples.server.unmanaged.HelloWorldResource.java from 258 | # neo4j-server-examples under /examples/unmanaged, resulting in a final URL of 259 | # http://localhost:7474/examples/unmanaged/helloworld/{nodeId} 260 | dbms.unmanaged_extension_classes=extension=/service 261 | 262 | # A comma separated list of procedures and user defined functions that are allowed 263 | # full access to the database through unsupported/insecure internal APIs. 264 | dbms.security.procedures.unrestricted=apoc.* 265 | apoc.export.file.enabled=true 266 | 267 | # A comma separated list of procedures to be loaded by default. 268 | # Leaving this unconfigured will load all procedures found. 269 | #dbms.security.procedures.whitelist=extension,apoc 270 | 271 | #******************************************************************** 272 | # JVM Parameters 273 | #******************************************************************** 274 | 275 | # G1GC generally strikes a good balance between throughput and tail 276 | # latency, without too much tuning. 277 | dbms.jvm.additional=-XX:+UseG1GC 278 | 279 | # Have common exceptions keep producing stack traces, so they can be 280 | # debugged regardless of how often logs are rotated. 281 | dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow 282 | 283 | # Make sure that `initmemory` is not only allocated, but committed to 284 | # the process, before starting the database. This reduces memory 285 | # fragmentation, increasing the effectiveness of transparent huge 286 | # pages. It also reduces the possibility of seeing performance drop 287 | # due to heap-growing GC events, where a decrease in available page 288 | # cache leads to an increase in mean IO response time. 289 | # Try reducing the heap memory, if this flag degrades performance. 290 | dbms.jvm.additional=-XX:+AlwaysPreTouch 291 | 292 | # Trust that non-static final fields are really final. 293 | # This allows more optimizations and improves overall performance. 294 | # NOTE: Disable this if you use embedded mode, or have extensions or dependencies that may use reflection or 295 | # serialization to change the value of final fields! 296 | dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions 297 | dbms.jvm.additional=-XX:+TrustFinalNonStaticFields 298 | 299 | # Disable explicit garbage collection, which is occasionally invoked by the JDK itself. 300 | dbms.jvm.additional=-XX:+DisableExplicitGC 301 | 302 | # Remote JMX monitoring, uncomment and adjust the following lines as needed. Absolute paths to jmx.access and 303 | # jmx.password files are required. 304 | # Also make sure to update the jmx.access and jmx.password files with appropriate permission roles and passwords, 305 | # the shipped configuration contains only a read only role called 'monitor' with password 'Neo4j'. 306 | # For more details, see: http://download.oracle.com/javase/8/docs/technotes/guides/management/agent.html 307 | # On Unix based systems the jmx.password file needs to be owned by the user that will run the server, 308 | # and have permissions set to 0600. 309 | # For details on setting these file permissions on Windows see: 310 | # http://docs.oracle.com/javase/8/docs/technotes/guides/management/security-windows.html 311 | #dbms.jvm.additional=-Dcom.sun.management.jmxremote.port=3637 312 | #dbms.jvm.additional=-Dcom.sun.management.jmxremote.authenticate=true 313 | #dbms.jvm.additional=-Dcom.sun.management.jmxremote.ssl=false 314 | #dbms.jvm.additional=-Dcom.sun.management.jmxremote.password.file=/absolute/path/to/conf/jmx.password 315 | #dbms.jvm.additional=-Dcom.sun.management.jmxremote.access.file=/absolute/path/to/conf/jmx.access 316 | 317 | # Some systems cannot discover host name automatically, and need this line configured: 318 | #dbms.jvm.additional=-Djava.rmi.server.hostname=$THE_NEO4J_SERVER_HOSTNAME 319 | 320 | # Expand Diffie Hellman (DH) key size from default 1024 to 2048 for DH-RSA cipher suites used in server TLS handshakes. 321 | # This is to protect the server from any potential passive eavesdropping. 322 | dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048 323 | 324 | # This mitigates a DDoS vector. 325 | dbms.jvm.additional=-Djdk.tls.rejectClientInitiatedRenegotiation=true 326 | 327 | 328 | apoc.trigger.enabled=true 329 | 330 | #******************************************************************** 331 | # Wrapper Windows NT/2000/XP Service Properties 332 | #******************************************************************** 333 | # WARNING - Do not modify any of these properties when an application 334 | # using this configuration file has been installed as a service. 335 | # Please uninstall the service before modifying this section. The 336 | # service can then be reinstalled. 337 | 338 | # Name of the service 339 | dbms.windows_service_name=neo4j 340 | 341 | #******************************************************************** 342 | # Other Neo4j system properties 343 | #******************************************************************** 344 | dbms.jvm.additional=-Dunsupported.dbms.udc.source=tarball 345 | wrapper.java.additional=-Dneo4j.ext.udc.source=docker 346 | ha.host.data=aed9ff738c64:6001 347 | ha.host.coordination=aed9ff738c64:5001 348 | dbms.tx_log.rotation.retention_policy=100M size 349 | dbms.security.auth_enabled=false 350 | dbms.memory.pagecache.size=512M 351 | dbms.memory.heap.max_size=512M 352 | dbms.memory.heap.initial_size=512M 353 | dbms.directories.logs=/logs 354 | dbms.connectors.default_listen_address=0.0.0.0 355 | dbms.connector.https.listen_address=0.0.0.0:7473 356 | dbms.connector.http.listen_address=0.0.0.0:7474 357 | dbms.connector.bolt.listen_address=0.0.0.0:7687 358 | causal_clustering.transaction_listen_address=0.0.0.0:6000 359 | causal_clustering.transaction_advertised_address=aed9ff738c64:6000 360 | causal_clustering.raft_listen_address=0.0.0.0:7000 361 | causal_clustering.raft_advertised_address=aed9ff738c64:7000 362 | causal_clustering.discovery_listen_address=0.0.0.0:5000 363 | causal_clustering.discovery_advertised_address=aed9ff738c64:5000 364 | HOME=/var/lib/neo4j 365 | EDITION=community 366 | -------------------------------------------------------------------------------- /plugins/apoc-3.5.0.4-all.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kbastani/docker-neo4j/544bf9815288309c9efe5c9fffadbd9348ae22ef/plugins/apoc-3.5.0.4-all.jar -------------------------------------------------------------------------------- /plugins/extension-1.1.2-RELEASE-jar-with-dependencies.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kbastani/docker-neo4j/544bf9815288309c9efe5c9fffadbd9348ae22ef/plugins/extension-1.1.2-RELEASE-jar-with-dependencies.jar -------------------------------------------------------------------------------- /sbin/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Start Neo4j as console 4 | /var/lib/neo4j/bin/neo4j console 5 | --------------------------------------------------------------------------------