- fixed docker compose for backend

- changed backend port to 4000
- removed volume from development build stage
This commit is contained in:
Ulf Gebhardt 2021-01-19 12:40:40 +01:00
parent a4e4d5d74e
commit 0523c88bb8
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
3 changed files with 12 additions and 12 deletions

View File

@ -16,7 +16,7 @@ ENV BUILD_COMMIT="0000000"
## SET NODE_ENV
ENV NODE_ENV=production
## App Envs
ENV PORT="3000"
ENV PORT="4000"
# Labels
LABEL org.label-schema.build-date="${BUILD_DATE}"
@ -55,7 +55,7 @@ FROM base as development
# local filesystem which will need a rebuild anyway
# Define Volume for workdir folder on development
VOLUME ${DOCKER_WORKDIR}
# VOLUME ${DOCKER_WORKDIR}
##################################################################################
# BUILD (Does contain all files and is therefore bloated) ########################

View File

@ -14,10 +14,10 @@ services:
- ./webapp:/develop-webapp
- webapp_node_modules:/develop-webapp/node_modules
backend:
image: ocelotsocialnetwork/develop-backend:build-and-test
image: ocelotsocialnetwork/develop-backend:development
build:
context: backend
target: build-and-test
context: ./backend
target: development
command: yarn run dev
environment:
- SMTP_HOST=mailserver
@ -26,9 +26,9 @@ services:
- "DEBUG=${DEBUG}"
- PUBLIC_REGISTRATION=false
volumes:
- ./backend:/develop-backend
- backend_node_modules:/develop-backend/node_modules
- uploads:/develop-backend/public/uploads
- ./backend:/app
- backend_node_modules:/app/node_modules
- uploads:/app/public/uploads
neo4j:
volumes:
- neo4j_data:/data

View File

@ -36,12 +36,12 @@ services:
ports:
- 4000:4000
volumes:
- ./backend:/develop-backend
- backend_node_modules:/develop-backend/node_modules
- uploads:/develop-backend/public/uploads
- ./backend:/app
- backend_node_modules:/app/node_modules
- uploads:/app/public/uploads
environment:
- NEO4J_URI=bolt://neo4j:7687
- GRAPHQL_URI=http://backend:4000
- GRAPHQL_URI=http://localhost:4000
- CLIENT_URI=http://localhost:3000
- JWT_SECRET=b/&&7b78BF&fv/Vd
- MAPBOX_TOKEN=pk.eyJ1IjoiYnVzZmFrdG9yIiwiYSI6ImNraDNiM3JxcDBhaWQydG1uczhpZWtpOW4ifQ.7TNRTO-o9aK1Y6MyW_Nd4g