Skip to content

Commit

Permalink
changed 'phpmyadmin' route into a general 'dbadmin' route
Browse files Browse the repository at this point in the history
  • Loading branch information
nik2208 committed Oct 12, 2023
1 parent 95c10d0 commit 8ee5610
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,28 @@ services:
- php-api-network

phpmyadmin:
container_name: phpmyadmin_treeqlqs
container_name: dbadmin_treeqlqs
image: phpmyadmin/phpmyadmin
restart: always
environment:
PMA_HOST: mysql_treeqlqs
PMA_ABSOLUTE_URI: ${SERVER_NAME}phpmyadmin/
PMA_ABSOLUTE_URI: ${SERVER_NAME}dbadmin/
networks:
- php-api-network
depends_on:
- web

#adminer:
# container_name: dbadmin_treeqlqs
# image: adminer
# restart: always
# environment:
# ADMINER_DEFAULT_SERVER: mysql_treeqlqs
# networks:
# - php-api-network
# depends_on:
# - web

swagger:
container_name: swagger_treeqlqs
image: swaggerapi/swagger-ui
Expand Down
4 changes: 2 additions & 2 deletions nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ server {
proxy_pass http://swagger_treeqlqs:8080/;
}

location ^~ /phpmyadmin/ {
location ^~ /dbadmin/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://phpmyadmin_treeqlqs/;
proxy_pass http://dbadmin_treeqlqs/;
}
}

0 comments on commit 8ee5610

Please sign in to comment.