From 290ee213fd88d994b7c603f8a0a58c6c7ddd805e Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Thu, 29 Nov 2018 15:11:41 +0000 Subject: [PATCH] Use an external Mongo database with Docker Compose --- docker/docker-compose.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 0fa49bf62..1620ae330 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -7,8 +7,7 @@ services: volumes: - db_data:/data/db environment: - MONGO_INITDB_ROOT_USERNAME: root - MONGO_INITDB_ROOT_PASSWORD: test + MONGO_INITDB_DATABASE: monkey monkey: depends_on: - db @@ -17,7 +16,7 @@ services: ports: - "5000:5000" environment: - MONGO_URL: mongodb://root:test@db:27017/ + MONGO_URL: mongodb://db:27017/monkey volumes: db_data: