From 45c3adb6fdfed5c191d8a14562eaabbd54c5c91b Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 27 Oct 2020 23:08:12 +0100 Subject: Split prod and dev config for Docker Compose This change splits the Docker Compose configuration into three files in order to share the configuration for different environments (e.g. development and production). Furthermore, this change drops the requirement for a reverse proxy. --- docker-compose.override.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docker-compose.override.yml (limited to 'docker-compose.override.yml') diff --git a/docker-compose.override.yml b/docker-compose.override.yml new file mode 100644 index 00000000..8c822c98 --- /dev/null +++ b/docker-compose.override.yml @@ -0,0 +1,31 @@ +version: "3.8" + +# Docker Compose overrides for development environments +services: + frontend: + build: + args: + OPENDC_API_BASE_URL: http://localhost:8081 + ports: + - "8080:80" + + api: + ports: + - "8081:8081" + + mongo: + ports: + - "27017:27017" + + mongo-express: + image: mongo-express + restart: on-failure + networks: + - backend + depends_on: + - mongo + ports: + - "8082:8081" + environment: + ME_CONFIG_MONGODB_ADMINUSERNAME: "${MONGO_INITDB_ROOT_USERNAME}" + ME_CONFIG_MONGODB_ADMINPASSWORD: "${MONGO_INITDB_ROOT_PASSWORD}" -- cgit v1.2.3