From cc62d9e0a3c846516e6357c62f6ea2a80d91dd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 18 Jul 2022 19:08:03 +0200 Subject: [PATCH] Switch in Docker Compose files Neo4j and maintenance --- docker-compose.apple-m1.override.yml | 12 +++++------ docker-compose.override.yml | 14 ++++++------- docker-compose.yml | 30 ++++++++++++++-------------- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/docker-compose.apple-m1.override.yml b/docker-compose.apple-m1.override.yml index a91b3ab77..cbb041c51 100644 --- a/docker-compose.apple-m1.override.yml +++ b/docker-compose.apple-m1.override.yml @@ -14,18 +14,18 @@ services: backend: platform: linux/amd64 - ######################################################## - # NEO4J ################################################ - ######################################################## - neo4j: - platform: linux/amd64 - ######################################################## # MAINTENANCE ########################################## ######################################################## maintenance: platform: linux/amd64 + ######################################################## + # NEO4J ################################################ + ######################################################## + neo4j: + platform: linux/amd64 + ######################################################## # MAILSERVER TO FAKE SMTP ############################## ######################################################## diff --git a/docker-compose.override.yml b/docker-compose.override.yml index e740af1fe..d8a3edc06 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -39,6 +39,13 @@ services: # bind the local folder to the docker to allow live reload - ./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 ################################################ ######################################################## @@ -52,13 +59,6 @@ services: # So we can access the neo4j query browser from our host machine - 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 ############################## ######################################################## diff --git a/docker-compose.yml b/docker-compose.yml index 98024362a..154a8fd4c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -72,6 +72,21 @@ services: env_file: - ./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 ################################################ ######################################################## @@ -97,21 +112,6 @@ services: # - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes # 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: external-net: internal-net: