summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-27 23:08:12 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-27 23:08:12 +0100
commit45c3adb6fdfed5c191d8a14562eaabbd54c5c91b (patch)
tree739308156e6c92e900a94e69c8acaf0b612640fb /docker-compose.yml
parent70026cebc0fd20b660cafe0bf95d0eea73459de2 (diff)
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.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml28
1 files changed, 1 insertions, 27 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 25e7ee8f..4d62b7cd 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -4,24 +4,16 @@ services:
build:
context: ./frontend
args:
- - OPENDC_OAUTH_CLIENT_ID=${OPENDC_OAUTH_CLIENT_ID}
- - OPENDC_API_BASE_URL=${OPENDC_SERVER_BASE_URL}
+ OPENDC_OAUTH_CLIENT_ID: ${OPENDC_OAUTH_CLIENT_ID}
image: frontend
restart: on-failure
networks:
- backend
- depends_on:
- - api
- ports:
- - "8081:80"
api:
build: ./api
image: api
restart: on-failure
- # Comment out these 2 lines for deployment
- ports:
- - "8082:8081"
networks:
- backend
depends_on:
@@ -36,8 +28,6 @@ services:
- OPENDC_DB_HOST=mongo
- OPENDC_FLASK_SECRET
- OPENDC_OAUTH_CLIENT_ID
- - OPENDC_ROOT_DIR
- - OPENDC_SERVER_BASE_URL
simulator:
build: ./simulator
@@ -74,25 +64,9 @@ services:
- OPENDC_DB_PASSWORD
networks:
- backend
- # Comment out for public deployment
- ports:
- - "27017:27017"
volumes:
- mongo-volume:/data/db
- mongo-express:
- image: mongo-express
- restart: on-failure
- networks:
- - backend
- depends_on:
- - mongo
- ports:
- - "8083:8081"
- environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME: "${MONGO_INITDB_ROOT_USERNAME}"
- ME_CONFIG_MONGODB_ADMINPASSWORD: "${MONGO_INITDB_ROOT_PASSWORD}"
-
volumes:
mongo-volume:
results-volume: