diff --git a/mongodb.yaml b/mongodb.yaml new file mode 100644 index 0000000..a682716 --- /dev/null +++ b/mongodb.yaml @@ -0,0 +1,21 @@ +version: "3.8" + +services: + mongo: + image: mongo + ports: + - 27017:27017 + environment: + MONGO_INITDB_ROOT_USERNAME: admin + MONGO_INITDB_ROOT_PASSWORD: qwerty + + + mongo-express: + image: mongo-express + ports: + - 8081:8081 + environment: + ME_CONFIG_MONGODB_ADMINUSERNAME: admin + ME_CONFIG_MONGODB_ADMINPASSWORD: qwerty + ME_CONFIG_MONGODB_URL: mongodb://admin:qwerty@mongo:27017/ + \ No newline at end of file