generated from ddev/ddev-addon-template
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall.yaml
24 lines (20 loc) · 836 Bytes
/
install.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: mongo
pre_install_actions:
- |
#ddev-description:Create config.mongo.yaml with webimage_extra_packages in it
printf '#ddev-generated\nwebimage_extra_packages: ["php${DDEV_PHP_VERSION}-mongodb"]\n' >.ddev/config.mongo.yaml
ddev_version_constraint: ">= v1.24.4"
post_install_actions:
- |
#ddev-description:If router disabled, directly expose port
#
if ( {{ contains "ddev-router" (list .DdevGlobalConfig.omit_containers | toString) }} ); then
printf "#ddev-generated\nservices:\n mongo-express:\n ports:\n - 9091:8081\n" > docker-compose.mongo_norouter.yaml
fi
- |
echo "You can now use 'ddev mongo-express' to launch Mongo Express UI"
project_files:
- commands/mongo/mongosh
- commands/host/mongo-express
- docker-compose.mongo.yaml
- docker-compose.mongo_norouter.yaml