From 87d0f0f1ef9ca5d93e9ca8c5e79d4ea826442b32 Mon Sep 17 00:00:00 2001 From: Han Date: Sun, 20 Aug 2023 17:29:12 +0100 Subject: [PATCH] move mongo init files to environment folder --- docker-compose.development.yml | 2 +- docker-compose.yml | 2 +- environment/containers/mongo/Dockerfile | 4 ---- .../containers/mongo/setup-mongodb-development.js | 0 .../containers/mongo/setup-mongodb-production.js | 0 5 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 environment/containers/mongo/Dockerfile rename setup-mongodb-development.js => environment/containers/mongo/setup-mongodb-development.js (100%) rename setup-mongodb-production.js => environment/containers/mongo/setup-mongodb-production.js (100%) diff --git a/docker-compose.development.yml b/docker-compose.development.yml index d981ad7..99e2a93 100644 --- a/docker-compose.development.yml +++ b/docker-compose.development.yml @@ -33,7 +33,7 @@ services: - 27017:27017 volumes: - outpost-api-dev-mongo-volume:/data/db - - ./setup-mongodb-development.js:/docker-entrypoint-initdb.d/mongo-init.js:ro + - ./environment/containers/mongo/setup-mongodb-development.js:/docker-entrypoint-initdb.d/mongo-init.js:ro environment: MONGO_INITDB_DATABASE: outpost_api_development networks: diff --git a/docker-compose.yml b/docker-compose.yml index 2c43d02..ab9dc13 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,7 +33,7 @@ services: - 27017:27017 volumes: - outpost-api-mongo-volume:/data/db - - ./setup-mongodb-production.js:/docker-entrypoint-initdb.d/mongo-init.js:ro + - ./environment/containers/mongo/setup-mongodb-production.js:/docker-entrypoint-initdb.d/mongo-init.js:ro networks: - outpost_api_external_network diff --git a/environment/containers/mongo/Dockerfile b/environment/containers/mongo/Dockerfile deleted file mode 100644 index b9f72da..0000000 --- a/environment/containers/mongo/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM mongo:latest as base_image - -FROM base_image as development - diff --git a/setup-mongodb-development.js b/environment/containers/mongo/setup-mongodb-development.js similarity index 100% rename from setup-mongodb-development.js rename to environment/containers/mongo/setup-mongodb-development.js diff --git a/setup-mongodb-production.js b/environment/containers/mongo/setup-mongodb-production.js similarity index 100% rename from setup-mongodb-production.js rename to environment/containers/mongo/setup-mongodb-production.js