Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +32 -0
Dockerfile
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official Neo4j image as the base image
|
| 2 |
+
FROM neo4j:latest
|
| 3 |
+
|
| 4 |
+
# Set environment variables
|
| 5 |
+
# ENV NEO4J_AUTH=neo4j/password
|
| 6 |
+
# ENV NEO4J_dbms_security_procedures_unrestricted=apoc.\\\*
|
| 7 |
+
# ENV NEO4J_dbms_memory_heap_max__size=512M
|
| 8 |
+
|
| 9 |
+
# Copy custom plugins (if any) to the plugins directory
|
| 10 |
+
# COPY ./plugins /plugins
|
| 11 |
+
|
| 12 |
+
# Expose ports
|
| 13 |
+
EXPOSE 7474 7687
|
| 14 |
+
|
| 15 |
+
# (Optional) Set the working directory
|
| 16 |
+
# WORKDIR /var/lib/neo4j
|
| 17 |
+
|
| 18 |
+
# (Optional) Copy configuration files (if needed)
|
| 19 |
+
# COPY ./neo4j.conf /var/lib/neo4j/conf/
|
| 20 |
+
|
| 21 |
+
# (Optional) Copy initialization scripts (if needed)
|
| 22 |
+
# COPY ./init-scripts /docker-entrypoint-initdb.d/
|
| 23 |
+
|
| 24 |
+
# (Optional) Add custom setup commands (if needed)
|
| 25 |
+
# RUN /var/lib/neo4j/bin/neo4j-admin set-initial-password password
|
| 26 |
+
|
| 27 |
+
# (Optional) Healthcheck for container status
|
| 28 |
+
# HEALTHCHECK --interval=5s --timeout=3s \
|
| 29 |
+
# CMD curl --fail http://localhost:7474 || exit 1
|
| 30 |
+
|
| 31 |
+
# Start Neo4j
|
| 32 |
+
CMD ["neo4j"]
|