2019-03-14 17:40:56 +00:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2019-03-15 08:00:05 +00:00
|
|
|
my-mongo:
|
|
|
|
image: my-mongo
|
2019-03-14 17:40:56 +00:00
|
|
|
restart: always
|
2019-03-17 16:25:59 +00:00
|
|
|
ports:
|
|
|
|
- 27017:27017
|
2019-03-14 17:40:56 +00:00
|
|
|
environment:
|
2019-03-14 18:49:01 +00:00
|
|
|
MONGO_INITDB_ROOT_USERNAME: ${DB_ADM_USER}
|
|
|
|
MONGO_INITDB_ROOT_PASSWORD: ${DB_ADM_PASS}
|
2019-03-14 17:40:56 +00:00
|
|
|
|
|
|
|
mongo-express:
|
|
|
|
image: mongo-express
|
|
|
|
restart: always
|
|
|
|
ports:
|
2019-03-15 08:00:05 +00:00
|
|
|
- 8087:8081
|
2019-03-14 17:40:56 +00:00
|
|
|
environment:
|
2019-03-14 18:49:01 +00:00
|
|
|
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_ADM_USER}
|
|
|
|
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_ADM_PASS}
|
2019-03-15 08:00:05 +00:00
|
|
|
ME_CONFIG_MONGODB_SERVER: my-mongo
|