Move volume declaration for backend to .override

+ lowercase working directory
+ download plugins to correct location /var/lib/neo4j/plugins
This commit is contained in:
Robert Schäfer 2018-11-02 11:16:39 +01:00
parent 4e13c6abe8
commit 0699b22137
4 changed files with 5 additions and 6 deletions

View File

@ -4,7 +4,7 @@ LABEL Description="Server part of the social network Human Connection" Vendor="H
# expose the app port
EXPOSE 4000
ARG WORKDIR=/Backend
ARG WORKDIR=/backend
RUN mkdir -p $WORKDIR
WORKDIR $WORKDIR

View File

@ -1,3 +1,2 @@
FROM neo4j:3.4
RUN wget https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.4.0.3/apoc-3.4.0.3-all.jar
RUN mkdir -p /plugins && mv apoc-3.4.0.3-all.jar plugins/
RUN wget https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.4.0.3/apoc-3.4.0.3-all.jar -P plugins/

View File

@ -3,6 +3,9 @@ version: "3.7"
services:
backend:
container_name: backend.127.0.0.1.xip.io
volumes:
- .:/backend
- /backend/node_modules
networks:
hc-network:

View File

@ -16,9 +16,6 @@ services:
- CLIENT_URI=http://localhost:3000
- JWT_SECRET=b/&&7b78BF&fv/Vd
- MOCK=false
volumes:
- .:/Backend
- /Backend/node_modules
neo4j:
ports: