Switch in Docker Compose files Neo4j and maintenance

This commit is contained in:
Wolfgang Huß 2022-07-18 19:08:03 +02:00
parent 9143eb7143
commit cc62d9e0a3
3 changed files with 28 additions and 28 deletions

View File

@ -14,18 +14,18 @@ services:
backend: backend:
platform: linux/amd64 platform: linux/amd64
########################################################
# NEO4J ################################################
########################################################
neo4j:
platform: linux/amd64
######################################################## ########################################################
# MAINTENANCE ########################################## # MAINTENANCE ##########################################
######################################################## ########################################################
maintenance: maintenance:
platform: linux/amd64 platform: linux/amd64
########################################################
# NEO4J ################################################
########################################################
neo4j:
platform: linux/amd64
######################################################## ########################################################
# MAILSERVER TO FAKE SMTP ############################## # MAILSERVER TO FAKE SMTP ##############################
######################################################## ########################################################

View File

@ -39,6 +39,13 @@ services:
# bind the local folder to the docker to allow live reload # bind the local folder to the docker to allow live reload
- ./backend:/app - ./backend:/app
########################################################
# MAINTENANCE ##########################################
########################################################
maintenance:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: ocelotsocialnetwork/maintenance:local-development
######################################################## ########################################################
# NEO4J ################################################ # NEO4J ################################################
######################################################## ########################################################
@ -52,13 +59,6 @@ services:
# So we can access the neo4j query browser from our host machine # So we can access the neo4j query browser from our host machine
- external-net - external-net
########################################################
# MAINTENANCE ##########################################
########################################################
maintenance:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: ocelotsocialnetwork/maintenance:local-development
######################################################## ########################################################
# MAILSERVER TO FAKE SMTP ############################## # MAILSERVER TO FAKE SMTP ##############################
######################################################## ########################################################

View File

@ -72,6 +72,21 @@ services:
env_file: env_file:
- ./backend/.env - ./backend/.env
########################################################
# MAINTENANCE ##########################################
########################################################
maintenance:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: ocelotsocialnetwork/maintenance:local-production
build:
# TODO: Separate from webapp, this must be independent
context: ./webapp
dockerfile: Dockerfile.maintenance
networks:
- external-net
ports:
- 3001:80
######################################################## ########################################################
# NEO4J ################################################ # NEO4J ################################################
######################################################## ########################################################
@ -97,21 +112,6 @@ services:
# - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes # - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
# TODO: Remove the playground from production # TODO: Remove the playground from production
########################################################
# MAINTENANCE ##########################################
########################################################
maintenance:
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
image: ocelotsocialnetwork/maintenance:local-production
build:
# TODO: Separate from webapp, this must be independent
context: ./webapp
dockerfile: Dockerfile.maintenance
networks:
- external-net
ports:
- 3001:80
networks: networks:
external-net: external-net:
internal-net: internal-net: