generated from ddev/ddev-addon-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.yaml
26 lines (21 loc) · 867 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
25
#ddev-generated
name: phpmyadmin
project_files:
- docker-compose.phpmyadmin.yaml
- docker-compose.phpmyadmin_norouter.yaml
- commands/host/phpmyadmin
pre_install_actions:
# Ensure we're on DDEV 1.23+. It's need for the `phpmyadmin` command (launch by port).
- |
#ddev-nodisplay
#ddev-description:Checking DDEV version
(ddev debug capabilities | grep corepack >/dev/null) || (echo "Please upgrade DDEV to v1.23+ to use this add-on." && false)
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 phpmyadmin:\n ports:\n - 8036:80\n" > docker-compose.phpmyadmin_norouter.yaml
fi
- |
echo "You can now use 'ddev phpmyadmin' to launch PhpMyAdmin"