adding phpMyAdmin to developer install

This commit is contained in:
ralf 2022-11-15 14:34:38 +01:00
parent 83eff39e00
commit 278644fbee
2 changed files with 25 additions and 0 deletions

View File

@ -271,6 +271,21 @@ services:
depends_on: depends_on:
- mongo - mongo
# phpMyAdmin
phpmyadmin:
restart: unless-stopped
image: phpmyadmin
container_name: phpmyadmin
hostname: phpmyadmin
# pre 20.1 installs run MariaDB on the host and need to pass the socket (to use egroupware user and it's password only valid on localhost)
#volumes:
# - /var/run/mysqld/mysqld.sock:/tmp/mysql.sock
environment:
# PMA_HOST: use localhost, if you use a socket (pre 20.1 install) or db for 20.1+ installations
- PMA_HOST=db
# phpMyAdmin needs the full URL incl. protocol, domain, path and a trailing slash!
- PMA_ABSOLUTE_URI=http://localhost/phpmyadmin/
# Portainer: Docker GUI (needs to be enabled in nginx.conf too!) # Portainer: Docker GUI (needs to be enabled in nginx.conf too!)
# portainer: # portainer:
# image: portainer/portainer # image: portainer/portainer

View File

@ -170,6 +170,16 @@ server {
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
} }
# phpMyAdmin
location /phpmyadmin/ {
proxy_pass http://phpmyadmin/;
#include proxy_params;
proxy_read_timeout 60m;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
# Portainer: Docker GUI (needs to be enabled in docker-compose.yml too!) # Portainer: Docker GUI (needs to be enabled in docker-compose.yml too!)
#location /portainer/ { #location /portainer/ {
# proxy_pass http://portainer:9000/; # proxy_pass http://portainer:9000/;