Skip to content

Commit e9b4a89

Browse files
authored
Bump mongo-express, small fixes (#18)
1 parent 8bcfd62 commit e9b4a89

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

docker-compose.mongo.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ services:
2929
environment:
3030
- MONGO_INITDB_ROOT_USERNAME=db
3131
- MONGO_INITDB_ROOT_PASSWORD=db
32-
- MONGO_INITDB_DATABASE=db
32+
# See https://github.com/docker-library/docs/tree/master/mongo#mongo_initdb_database
33+
# - MONGO_INITDB_DATABASE=db
3334
healthcheck:
3435
test: ["CMD-SHELL", "mongo --eval 'db.runCommand(\"ping\").ok' localhost:27017/test --quiet"]
3536
timeout: 60s
3637

3738
mongo-express:
3839
container_name: ddev-${DDEV_SITENAME}-mongo-express
39-
image: mongo-express:0.54
40+
image: mongo-express:1.0
4041
restart: "no"
4142
labels:
4243
com.ddev.site-name: ${DDEV_SITENAME}
@@ -46,9 +47,11 @@ services:
4647
- "8081"
4748
environment:
4849
VIRTUAL_HOST: $DDEV_HOSTNAME
49-
ME_CONFIG_MONGODB_ADMINUSERNAME: db
50-
ME_CONFIG_MONGODB_ADMINPASSWORD: db
50+
ME_CONFIG_MONGODB_ENABLE_ADMIN: "true"
51+
ME_CONFIG_BASICAUTH: "false"
52+
ME_CONFIG_MONGODB_URL: "mongodb://db:db@mongo:27017"
5153
HTTP_EXPOSE: "9091:8081"
54+
HTTPS_EXPOSE: "9092:8081"
5255
depends_on:
5356
- mongo
5457
entrypoint: [sh, -c, "sleep 5s && tini -- /docker-entrypoint.sh mongo-express"]

install.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: mongo
33
pre_install_actions:
44
- |
55
#ddev-description:Create config.mongo.yaml with webimage_extra_packages in it
6-
printf "#ddev-generated\nwebimage_extra_packages: [php${DDEV_PHP_VERSION}-mongodb]" >.ddev/config.mongo.yaml
6+
printf '#ddev-generated\nwebimage_extra_packages: ["php${DDEV_PHP_VERSION}-mongodb"]\n' >.ddev/config.mongo.yaml
77
88
# list of files and directories listed that are copied into project .ddev directory
99
project_files:

0 commit comments

Comments
 (0)