Skip to content

Commit

Permalink
fix: directly expose port on 8036 when router disabled, fixes #3 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Jul 27, 2023
1 parent eb20886 commit e9a3c79
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.phpmyadmin-norouter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ddev-generated
# If omit_containers[ddev-router] then this file will be replaced
# with another with a `ports` statement to directly expose port 80 to 8036
services: {}
10 changes: 10 additions & 0 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@ name: phpmyadmin

project_files:
- docker-compose.phpmyadmin.yaml
- docker-compose.phpmyadmin-norouter.yaml
- commands/host/phpmyadmin

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

0 comments on commit e9a3c79

Please sign in to comment.