From e5073b43fefcadce4a687c783b35cf42ba708eeb Mon Sep 17 00:00:00 2001 From: Yutsuo Date: Mon, 29 Mar 2021 10:39:55 -0300 Subject: [PATCH] whatever --- docker-compose.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0467308..37f5e69 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,11 +4,10 @@ services: mongodb: image: mongo:latest container_name: mongodb - ports: - - "27017:27017" environment: - MONGO_INITDB_ROOT_USERNAME: root - MONGO_INITDB_ROOT_PASSWORD: example + - MONGO_INITDB_DATABASE=air + - MONGO_INITDB_ROOT_USERNAME=root + - MONGO_INITDB_ROOT_PASSWORD=example seed: container_name: seed @@ -18,11 +17,19 @@ services: mongo-express: image: mongo-express:latest + depends_on: + - mongodb restart: on-failure ports: - "8081:8081" links: - mongodb environment: - ME_CONFIG_BASICAUTH_USERNAME: root - ME_CONFIG_BASICAUTH_PASSWORD: example \ No newline at end of file + - ME_CONFIG_BASICAUTH_USERNAME=root + - ME_CONFIG_BASICAUTH_PASSWORD=example + - ME_CONFIG_MONGODB_ADMINUSERNAME=root + - ME_CONFIG_MONGODB_ADMINPASSWORD=example + - ME_CONFIG_MONGODB_SERVER=mongodb + - ME_CONFIG_MONGODB_PORT=27017 + - ME_CONFIG_MONGODB_ENABLE_ADMIN=true + - ME_CONFIG_OPTIONS_EDITORTHEME=default \ No newline at end of file