31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
services:
|
|
# manage MySQL and MariaDB databases over the web
|
|
phpmyadmin:
|
|
image: phpmyadmin/phpmyadmin:latest
|
|
container_name: phpmyadmin
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8183:80"
|
|
environment:
|
|
TZ: America/Chicago
|
|
PMA_ARBITRARY: 1 #connect to any accessible database server
|
|
#As an alternative to allowing arbitrary access, supply the PMA_HOST and PMA_PORT environment variables instead of PMA_ARBITRARY
|
|
#PMA_HOST: myfin_db
|
|
#PMA_PORT: 3306
|
|
networks:
|
|
- myphpadmin_net
|
|
volumes:
|
|
- /srv/docker/utilities/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
|
|
# - /srv/docker/utilities/phpmyadmin/sessions:/sessions:rw # if you need to persist sessions (need permissions for uid=33(www-data) gid=33(www-data) groups=33(www-data))
|
|
#first run:
|
|
#command: >
|
|
# /bin/sh -c "echo 'ServerName 127.0.0.1' >> /etc/apache2/apache2.conf && /docker-entrypoint.sh apache2-foreground"
|
|
labels:
|
|
- homepage.group=Development
|
|
- homepage.name=phpMyAdmin
|
|
- homepage.icon=phpmyadmin.png
|
|
- homepage.href=${PHPMYADMIN_URL}
|
|
- homepage.description=MySQL and MariaDB database manager
|
|
- rackpeek.tags=development
|
|
networks:
|
|
myphpadmin_net: |