From de8da7fb30c0e1650b8be91c8269b8742f5d30f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 13 Jul 2022 10:00:55 +0200 Subject: [PATCH 01/11] Add platform for Apple M1 via docker compose override --- docker-compose.apple-m1.override.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docker-compose.apple-m1.override.yml diff --git a/docker-compose.apple-m1.override.yml b/docker-compose.apple-m1.override.yml new file mode 100644 index 000000000..214655ab6 --- /dev/null +++ b/docker-compose.apple-m1.override.yml @@ -0,0 +1,32 @@ +version: "3.4" + +services: + ######################################################## + # WEBAPP ############################################### + ######################################################## + webapp: + platform: linux/amd64 + + ######################################################## + # BACKEND ############################################## + ######################################################## + backend: + platform: linux/amd64 + + ######################################################## + # NEO4J ################################################ + ######################################################## + neo4j: + platform: linux/amd64 + + ######################################################## + # MAINTENANCE ########################################## + ######################################################## + maintenance: + platform: linux/amd64 + + ######################################################## + # MAILSERVER TO FAKE SMTP ############################## + ######################################################## + mailserver: + platform: linux/amd64 From 04cd391a39c58560ac967c6da92a69876bf72fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 13 Jul 2022 10:02:18 +0200 Subject: [PATCH 02/11] Remove image entries in 'docker-compose.yml' and 'docker-compose.override.yml' --- docker-compose.override.yml | 14 +++++++++----- docker-compose.yml | 11 +++++++---- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 15cf00e7a..e1ee25fd7 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -5,7 +5,7 @@ services: # WEBAPP ############################################### ######################################################## webapp: - image: ocelotsocialnetwork/webapp:development + # image: ocelotsocialnetwork/webapp:development build: target: development environment: @@ -18,11 +18,12 @@ services: - webapp_node_modules:/app/node_modules # bind the local folder to the docker to allow live reload - ./webapp:/app + ######################################################## # BACKEND ############################################## ######################################################## backend: - image: ocelotsocialnetwork/backend:development + # image: ocelotsocialnetwork/backend:development build: target: development environment: @@ -34,22 +35,25 @@ services: - backend_node_modules:/app/node_modules # bind the local folder to the docker to allow live reload - ./backend:/app + ######################################################## # NEO4J ################################################ ######################################################## neo4j: - image: ocelotsocialnetwork/neo4j:development + # image: ocelotsocialnetwork/neo4j:development ports: # Also expose the neo4j query browser - 7474:7474 networks: # So we can access the neo4j query browser from our host machine - external-net + ######################################################## # MAINTENANCE ########################################## ######################################################## - maintenance: - image: ocelotsocialnetwork/maintenance:development + # maintenance: + # image: ocelotsocialnetwork/maintenance:development + ######################################################## # MAILSERVER TO FAKE SMTP ############################## ######################################################## diff --git a/docker-compose.yml b/docker-compose.yml index d20bb6aec..f1baaf58c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: # WEBAPP ############################################### ######################################################## webapp: - image: ocelotsocialnetwork/webapp:latest + # image: ocelotsocialnetwork/webapp:latest build: context: ./webapp target: production @@ -35,11 +35,12 @@ services: - GRAPHQL_URI=http://backend:4000 env_file: - ./webapp/.env + ######################################################## # BACKEND ############################################## ######################################################## backend: - image: ocelotsocialnetwork/backend:latest + # image: ocelotsocialnetwork/backend:latest build: context: ./backend target: production @@ -67,11 +68,12 @@ services: - CLIENT_URI=http://webapp:3000 env_file: - ./backend/.env + ######################################################## # NEO4J ################################################ ######################################################## neo4j: - image: ocelotsocialnetwork/neo4j:latest + # image: ocelotsocialnetwork/neo4j:latest build: context: ./neo4j # community edition 👆🏼, because we have no enterprise licence 👇🏼 at the moment @@ -90,11 +92,12 @@ services: # TODO: clarify if that is the only thing needed to unlock the Enterprise version # - NEO4J_ACCEPT_LICENSE_AGREEMENT=yes # TODO: Remove the playground from production + ######################################################## # MAINTENANCE ########################################## ######################################################## maintenance: - image: ocelotsocialnetwork/maintenance:latest + # image: ocelotsocialnetwork/maintenance:latest build: # TODO: Separate from webapp, this must be independent context: ./webapp From 0fef1bbd60349d1bd7ea1f20a8917146a751d09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 13 Jul 2022 10:49:21 +0200 Subject: [PATCH 03/11] Change Docker compose 'maintenance' port from '5000' to '3001' - Because port '5000' has a standard use on macOS, it is said. --- docker-compose.yml | 2 +- webapp/maintenance/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f1baaf58c..a75e65883 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -105,7 +105,7 @@ services: networks: - external-net ports: - - 5000:80 + - 3001:80 networks: external-net: diff --git a/webapp/maintenance/README.md b/webapp/maintenance/README.md index 99e410a1c..95c09bae8 100644 --- a/webapp/maintenance/README.md +++ b/webapp/maintenance/README.md @@ -36,4 +36,4 @@ $ docker-compose up ```` And the maintenance mode page or service will be started as well in an own container. -In the browser you can reach it under `http://localhost:5000/`. +In the browser you can reach it under `http://localhost:3001/`. From 2c4ee18c9e2c79c90cf2a99c5f2c6dd741a50268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Fri, 15 Jul 2022 09:19:10 +0200 Subject: [PATCH 04/11] Make 'docker-compose-apple-m1.override.yml' usable for overriding development as well - Do this by removing 'mailserver' platform in 'docker-compose-apple-m1.override.yml'. --- docker-compose.apple-m1.override.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.apple-m1.override.yml b/docker-compose.apple-m1.override.yml index 214655ab6..e5b8ddb9e 100644 --- a/docker-compose.apple-m1.override.yml +++ b/docker-compose.apple-m1.override.yml @@ -28,5 +28,6 @@ services: ######################################################## # MAILSERVER TO FAKE SMTP ############################## ######################################################## - mailserver: - platform: linux/amd64 + # commented out, because otherwise override of production would error. and it seems unnecessary + # mailserver: + # platform: linux/amd64 From 8d10066fbaaebd02196d18d753b1a3ec0c18b5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Fri, 15 Jul 2022 09:28:53 +0200 Subject: [PATCH 05/11] Replace in docker compose 'ocelotsocialnetwork/*:development' by 'ocelotsocialnetwork/*:local-development' --- docker-compose.override.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.override.yml b/docker-compose.override.yml index e1ee25fd7..fd9e6f41f 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -5,7 +5,7 @@ services: # WEBAPP ############################################### ######################################################## webapp: - # image: ocelotsocialnetwork/webapp:development + image: ocelotsocialnetwork/webapp:local-development build: target: development environment: @@ -23,7 +23,7 @@ services: # BACKEND ############################################## ######################################################## backend: - # image: ocelotsocialnetwork/backend:development + image: ocelotsocialnetwork/backend:local-development build: target: development environment: @@ -40,7 +40,7 @@ services: # NEO4J ################################################ ######################################################## neo4j: - # image: ocelotsocialnetwork/neo4j:development + image: ocelotsocialnetwork/neo4j:local-development ports: # Also expose the neo4j query browser - 7474:7474 @@ -51,8 +51,8 @@ services: ######################################################## # MAINTENANCE ########################################## ######################################################## - # maintenance: - # image: ocelotsocialnetwork/maintenance:development + maintenance: + image: ocelotsocialnetwork/maintenance:local-development ######################################################## # MAILSERVER TO FAKE SMTP ############################## From f5c4cd77013a323ecddc6f653dd1df787f43b1bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Fri, 15 Jul 2022 09:29:59 +0200 Subject: [PATCH 06/11] Replace in docker compose 'ocelotsocialnetwork/*:latest' by 'ocelotsocialnetwork/*:local-production' --- docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index a75e65883..d71a9e947 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: # WEBAPP ############################################### ######################################################## webapp: - # image: ocelotsocialnetwork/webapp:latest + image: ocelotsocialnetwork/webapp:local-production build: context: ./webapp target: production @@ -40,7 +40,7 @@ services: # BACKEND ############################################## ######################################################## backend: - # image: ocelotsocialnetwork/backend:latest + image: ocelotsocialnetwork/backend:local-production build: context: ./backend target: production @@ -73,7 +73,7 @@ services: # NEO4J ################################################ ######################################################## neo4j: - # image: ocelotsocialnetwork/neo4j:latest + image: ocelotsocialnetwork/neo4j:local-production build: context: ./neo4j # community edition 👆🏼, because we have no enterprise licence 👇🏼 at the moment @@ -97,7 +97,7 @@ services: # MAINTENANCE ########################################## ######################################################## maintenance: - # image: ocelotsocialnetwork/maintenance:latest + image: ocelotsocialnetwork/maintenance:local-production build: # TODO: Separate from webapp, this must be independent context: ./webapp From 9468e3c697d0d9f151a3c9598188e05debce61c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Sun, 17 Jul 2022 19:42:38 +0200 Subject: [PATCH 07/11] Add todo comment for our old maintenance worker --- docker-compose.maintenance.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.maintenance.yml b/docker-compose.maintenance.yml index 56da9be52..831bb3f4a 100644 --- a/docker-compose.maintenance.yml +++ b/docker-compose.maintenance.yml @@ -1,3 +1,5 @@ +# Todo: !!! This file seems related to our old maintenance worker for MongoDB and has to be refactored in case of using it !!! + version: "3.4" services: From 2f3f37c158cfc9b300540d3c8f016548b15a5277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Sun, 17 Jul 2022 20:37:33 +0200 Subject: [PATCH 08/11] Add documentation for Apple M1 Docker Compose override files --- DOCKER_MORE_CLOSELY.md | 84 ++++++++++++++++++++++++++++++++++++++++++ SUMMARY.md | 1 + 2 files changed, 85 insertions(+) create mode 100644 DOCKER_MORE_CLOSELY.md diff --git a/DOCKER_MORE_CLOSELY.md b/DOCKER_MORE_CLOSELY.md new file mode 100644 index 000000000..592b5bb9b --- /dev/null +++ b/DOCKER_MORE_CLOSELY.md @@ -0,0 +1,84 @@ +# Docker More Closely + +## Apple M1 Platform + +***Attention:** For using Docker commands in Apple M1 environments!* + +### Enviroment Variable For Apple M1 Platform + +To set the Docker platform environment variable in your terminal tab, run: + +```bash +# set env variable for your shell +$ export DOCKER_DEFAULT_PLATFORM=linux/amd64 +``` + +### Docker Compose Override File For Apple M1 Platform + +For Docker compose `up` or `build` commands, you can use our Apple M1 override file that specifies the M1 platform: + +```bash +# in main folder + +# for development +$ docker compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.apple-m1.override.yml up +# clean db +$ docker compose exec backend yarn db:reset +# seed db +$ docker compose exec backend yarn db:seed + +# for production +$ docker compose -f docker-compose.yml -f docker-compose.apple-m1.override.yml up +# init admin user +$ docker compose exec backend /bin/sh -c "yarn prod:migrate init" +``` + +## Analysing Docker Builds + +To analyze a Docker build, there is a wonderful tool called [dive](https://github.com/wagoodman/dive). Please sponsor if you're using it! + +The `dive build` command is exactly the right one to fulfill what we are looking for. +We can use it just like the `docker build` command and get an analysis afterwards. + +So, in our main folder, we use it in the following way: + +```bash +# in main folder +$ dive build --target -t "ocelotsocialnetwork/:local-" --build-arg BBUILD_DATE="" --build-arg BBUILD_VERSION="" --build-arg BBUILD_COMMIT="" / +``` + +The build arguments are optional. + +For the specific applications, we use them as follows. + +### Backend + +#### Production For Backend + +```bash +# in main folder +$ dive build --target production -t "ocelotsocialnetwork/backend:local-production" backend/ +``` + +#### Development For Backend + +```bash +# in main folder +$ dive build --target development -t "ocelotsocialnetwork/backend:local-development" backend/ +``` + +### Webapp + +#### Production For Webapp + +```bash +# in main folder +$ dive build --target production -t "ocelotsocialnetwork/webapp:local-production" webapp/ +``` + +#### Development For Webapp + +```bash +# in main folder +$ dive build --target development -t "ocelotsocialnetwork/webapp:local-development" webapp/ +``` diff --git a/SUMMARY.md b/SUMMARY.md index 9c74b1974..f848633d5 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -15,6 +15,7 @@ * [End-to-end tests](cypress/README.md) * [Frontend tests](webapp/testing.md) * [Backend tests](backend/testing.md) +* [Docker More Closely](DOCKER_MORE_CLOSELY.md) * [Deployment](https://github.com/Ocelot-Social-Community/Ocelot-Social-Deploy-Rebranding/blob/master/deployment/README.md) * [Contributing](CONTRIBUTING.md) * [Feature Specification](cypress/features.md) From bc97b1db0c79e16b5c4578f950b96be32d430ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 18 Jul 2022 06:42:14 +0200 Subject: [PATCH 09/11] Add comments for Docker image naming --- docker-compose.apple-m1.override.yml | 1 + docker-compose.override.yml | 5 +++++ docker-compose.test.yml | 9 +++++++++ docker-compose.yml | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/docker-compose.apple-m1.override.yml b/docker-compose.apple-m1.override.yml index e5b8ddb9e..a91b3ab77 100644 --- a/docker-compose.apple-m1.override.yml +++ b/docker-compose.apple-m1.override.yml @@ -1,6 +1,7 @@ version: "3.4" services: + ######################################################## # WEBAPP ############################################### ######################################################## diff --git a/docker-compose.override.yml b/docker-compose.override.yml index fd9e6f41f..baf4bf89f 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -1,10 +1,12 @@ version: "3.4" services: + ######################################################## # WEBAPP ############################################### ######################################################## webapp: + # 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/webapp:local-development build: target: development @@ -23,6 +25,7 @@ services: # BACKEND ############################################## ######################################################## backend: + # 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/backend:local-development build: target: development @@ -40,6 +43,7 @@ services: # NEO4J ################################################ ######################################################## neo4j: + # 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/neo4j:local-development ports: # Also expose the neo4j query browser @@ -52,6 +56,7 @@ services: # 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 ######################################################## diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 973cf87cf..843dd5ff8 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -1,10 +1,12 @@ version: "3.4" services: + ######################################################## # WEBAPP ############################################### ######################################################## webapp: + # 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/webapp:test build: target: test @@ -12,10 +14,12 @@ services: - NODE_ENV="test" volumes: - ./coverage:/app/coverage + ######################################################## # BACKEND ############################################## ######################################################## backend: + # 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/backend:test build: target: test @@ -23,10 +27,12 @@ services: - NODE_ENV="test" volumes: - ./coverage:/app/coverage + ######################################################## # NEO4J ################################################ ######################################################## neo4j: + # 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/neo4j:community #environment: # - NEO4J_dbms_connector_bolt_enabled=true @@ -39,11 +45,14 @@ services: networks: # 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:test + ######################################################## # MAILSERVER TO FAKE SMTP ############################## ######################################################## diff --git a/docker-compose.yml b/docker-compose.yml index d71a9e947..796489439 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,10 +6,12 @@ version: "3.4" services: + ######################################################## # WEBAPP ############################################### ######################################################## webapp: + # 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/webapp:local-production build: context: ./webapp @@ -40,6 +42,7 @@ services: # BACKEND ############################################## ######################################################## backend: + # 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/backend:local-production build: context: ./backend @@ -73,6 +76,7 @@ services: # NEO4J ################################################ ######################################################## neo4j: + # 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/neo4j:local-production build: context: ./neo4j @@ -97,6 +101,7 @@ services: # 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 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 10/11] 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: From 3491f2ae15c4fe202d0736b11784fca39e3917e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 18 Jul 2022 19:10:17 +0200 Subject: [PATCH 11/11] Switch in Docker Compose test file Neo4j and maintenance --- docker-compose.test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 3485274db..fa858f28c 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -28,6 +28,13 @@ services: volumes: - ./coverage:/app/coverage + ######################################################## + # 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:test + ######################################################## # NEO4J ################################################ ######################################################## @@ -46,13 +53,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:test - ######################################################## # MAILSERVER TO FAKE SMTP ############################## ########################################################