-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinstall.yaml
More file actions
25 lines (21 loc) · 828 Bytes
/
install.yaml
File metadata and controls
25 lines (21 loc) · 828 Bytes
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
name: phpmyadmin
project_files:
- docker-compose.phpmyadmin.yaml
- docker-compose.phpmyadmin_norouter.yaml
- commands/host/phpmyadmin
pre_install_actions:
- |
#ddev-description:Check for db service
if ddev debug configyaml 2>/dev/null | grep omit_containers | grep -q db; then
echo "Unable to install the add-on because no db service was found"
exit 1
fi
ddev_version_constraint: '>= v1.24.10'
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"