File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,15 @@ services:
29
29
environment :
30
30
- MONGO_INITDB_ROOT_USERNAME=db
31
31
- 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
33
34
healthcheck :
34
35
test : ["CMD-SHELL", "mongo --eval 'db.runCommand(\"ping\").ok' localhost:27017/test --quiet"]
35
36
timeout : 60s
36
37
37
38
mongo-express :
38
39
container_name : ddev-${DDEV_SITENAME}-mongo-express
39
- image : mongo-express:0.54
40
+ image : mongo-express:1.0
40
41
restart : " no"
41
42
labels :
42
43
com.ddev.site-name : ${DDEV_SITENAME}
@@ -46,9 +47,11 @@ services:
46
47
- " 8081"
47
48
environment :
48
49
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"
51
53
HTTP_EXPOSE : " 9091:8081"
54
+ HTTPS_EXPOSE : " 9092:8081"
52
55
depends_on :
53
56
- mongo
54
57
entrypoint : [sh, -c, "sleep 5s && tini -- /docker-entrypoint.sh mongo-express"]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: mongo
3
3
pre_install_actions :
4
4
- |
5
5
#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
7
7
8
8
# list of files and directories listed that are copied into project .ddev directory
9
9
project_files :
You can’t perform that action at this time.
0 commit comments