diff --git a/phpmyadmin.yaml b/phpmyadmin.yaml new file mode 100644 index 0000000..b95dd42 --- /dev/null +++ b/phpmyadmin.yaml @@ -0,0 +1,31 @@ +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=Utilities + - homepage.name=phpMyAdmin + - homepage.icon=phpmyadmin.png + - homepage.href=http://192.168.0.131:8183 + - homepage.description=MySQL and MariaDB database manager + - rackpeek.tags=utilities +networks: + myphpadmin_net: \ No newline at end of file