From 16cce5a6d74a0f8b8232edde16f48eaac74a9bd2 Mon Sep 17 00:00:00 2001 From: technorabilia Date: Thu, 24 Jun 2021 00:36:04 +0000 Subject: [PATCH] Workflow update --- lsio/phpmyadmin/docker-compose.yaml | 28 ++++++++++++++++++++++++++++ lsio/phpmyadmin/docker-run.sh | 16 ++++++++++++++++ lsio/phpmyadmin/run-once.sh | 3 +++ 3 files changed, 47 insertions(+) create mode 100644 lsio/phpmyadmin/docker-compose.yaml create mode 100644 lsio/phpmyadmin/docker-run.sh create mode 100644 lsio/phpmyadmin/run-once.sh diff --git a/lsio/phpmyadmin/docker-compose.yaml b/lsio/phpmyadmin/docker-compose.yaml new file mode 100644 index 0000000..f565c31 --- /dev/null +++ b/lsio/phpmyadmin/docker-compose.yaml @@ -0,0 +1,28 @@ +# [Phpmyadmin](https://github.com/phpmyadmin/phpmyadmin/) is a free software +# tool written in PHP, intended to handle the administration of MySQL over the +# Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB. + +--- +version: "2.1" +services: + phpmyadmin: + image: ghcr.io/linuxserver/phpmyadmin + container_name: phpmyadmin + environment: + # for GroupID + - PUID=${PUID:-1024} + # for UserID + - PGID=${PGID:-100} + # Specify a timezone to use for example Europe/Amsterdam + - TZ=${TZ:-Europe/Amsterdam} + # Set to `1` to allow you to connect to any server. Setting to `0` will only allow you to connect to specified hosts (See Application Setup) + - PMA_ARBITRARY=1 # optional + # Set the URL you will use to access the web frontend + - PMA_ABSOLUTE_URI=https://phpmyadmin.example.com # optional + volumes: + # Contains all relevant configuration files. + - ${BASEDIR:-/volume1/docker}/phpmyadmin/config:/config + ports: + # Port for web frontend + - 80:80 + restart: unless-stopped diff --git a/lsio/phpmyadmin/docker-run.sh b/lsio/phpmyadmin/docker-run.sh new file mode 100644 index 0000000..25f4107 --- /dev/null +++ b/lsio/phpmyadmin/docker-run.sh @@ -0,0 +1,16 @@ +# [Phpmyadmin](https://github.com/phpmyadmin/phpmyadmin/) is a free software +# tool written in PHP, intended to handle the administration of MySQL over the +# Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB. + +source ./.env +docker run -d \ + --name=phpmyadmin \ + -e PUID=${PUID:-1024} `# for GroupID` \ + -e PGID=${PGID:-100} `# for UserID` \ + -e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \ + -e PMA_ARBITRARY=1 `# optional` `# Set to `1` to allow you to connect to any server. Setting to `0` will only allow you to connect to specified hosts (See Application Setup)` \ + -e PMA_ABSOLUTE_URI=https://phpmyadmin.example.com `# optional` `# Set the URL you will use to access the web frontend` \ + -p 80:80 `# Port for web frontend` \ + -v ${BASEDIR:-/volume1/docker}/phpmyadmin/config:/config `# Contains all relevant configuration files.` \ + --restart unless-stopped \ + ghcr.io/linuxserver/phpmyadmin diff --git a/lsio/phpmyadmin/run-once.sh b/lsio/phpmyadmin/run-once.sh new file mode 100644 index 0000000..cab0eee --- /dev/null +++ b/lsio/phpmyadmin/run-once.sh @@ -0,0 +1,3 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/phpmyadmin/config