diff --git a/.docs/assets/themes/adminer-dark.png b/.docs/assets/themes/adminer-dark.png new file mode 100644 index 0000000..86ea56d Binary files /dev/null and b/.docs/assets/themes/adminer-dark.png differ diff --git a/.docs/assets/themes/brade.png b/.docs/assets/themes/brade.png new file mode 100644 index 0000000..c5e309b Binary files /dev/null and b/.docs/assets/themes/brade.png differ diff --git a/.docs/assets/themes/bueltge.png b/.docs/assets/themes/bueltge.png new file mode 100644 index 0000000..212cd57 Binary files /dev/null and b/.docs/assets/themes/bueltge.png differ diff --git a/.docs/assets/themes/default.png b/.docs/assets/themes/default.png new file mode 100644 index 0000000..d5ef4c4 Binary files /dev/null and b/.docs/assets/themes/default.png differ diff --git a/.docs/assets/themes/dracula.png b/.docs/assets/themes/dracula.png new file mode 100644 index 0000000..cf43f47 Binary files /dev/null and b/.docs/assets/themes/dracula.png differ diff --git a/.docs/assets/themes/esterka.png b/.docs/assets/themes/esterka.png new file mode 100644 index 0000000..c3db58c Binary files /dev/null and b/.docs/assets/themes/esterka.png differ diff --git a/.docs/assets/themes/flat.png b/.docs/assets/themes/flat.png new file mode 100644 index 0000000..64e3a6b Binary files /dev/null and b/.docs/assets/themes/flat.png differ diff --git a/.docs/assets/themes/galkaev.png b/.docs/assets/themes/galkaev.png new file mode 100644 index 0000000..0980cc6 Binary files /dev/null and b/.docs/assets/themes/galkaev.png differ diff --git a/.docs/assets/themes/haeckel.png b/.docs/assets/themes/haeckel.png new file mode 100644 index 0000000..3d04fd7 Binary files /dev/null and b/.docs/assets/themes/haeckel.png differ diff --git a/.docs/assets/themes/hever.png b/.docs/assets/themes/hever.png new file mode 100644 index 0000000..d5ef4c4 Binary files /dev/null and b/.docs/assets/themes/hever.png differ diff --git a/.docs/assets/themes/konya.png b/.docs/assets/themes/konya.png new file mode 100644 index 0000000..69ab36a Binary files /dev/null and b/.docs/assets/themes/konya.png differ diff --git a/.docs/assets/themes/lavender-light.png b/.docs/assets/themes/lavender-light.png new file mode 100644 index 0000000..22bf7ac Binary files /dev/null and b/.docs/assets/themes/lavender-light.png differ diff --git a/.docs/assets/themes/lucas-sandery.png b/.docs/assets/themes/lucas-sandery.png new file mode 100644 index 0000000..0941ad4 Binary files /dev/null and b/.docs/assets/themes/lucas-sandery.png differ diff --git a/.docs/assets/themes/mancave.png b/.docs/assets/themes/mancave.png new file mode 100644 index 0000000..6cc3723 Binary files /dev/null and b/.docs/assets/themes/mancave.png differ diff --git a/.docs/assets/themes/mvt.png b/.docs/assets/themes/mvt.png new file mode 100644 index 0000000..f86d07b Binary files /dev/null and b/.docs/assets/themes/mvt.png differ diff --git a/.docs/assets/themes/nette.png b/.docs/assets/themes/nette.png new file mode 100644 index 0000000..5a0e21a Binary files /dev/null and b/.docs/assets/themes/nette.png differ diff --git a/.docs/assets/themes/ng9.png b/.docs/assets/themes/ng9.png new file mode 100644 index 0000000..f995ba3 Binary files /dev/null and b/.docs/assets/themes/ng9.png differ diff --git a/.docs/assets/themes/nicu.png b/.docs/assets/themes/nicu.png new file mode 100644 index 0000000..6edc9dc Binary files /dev/null and b/.docs/assets/themes/nicu.png differ diff --git a/.docs/assets/themes/pappu687.png b/.docs/assets/themes/pappu687.png new file mode 100644 index 0000000..6f9d790 Binary files /dev/null and b/.docs/assets/themes/pappu687.png differ diff --git a/.docs/assets/themes/paranoiq.png b/.docs/assets/themes/paranoiq.png new file mode 100644 index 0000000..a902641 Binary files /dev/null and b/.docs/assets/themes/paranoiq.png differ diff --git a/.docs/assets/themes/pepa-linha.png b/.docs/assets/themes/pepa-linha.png new file mode 100644 index 0000000..c3c0b25 Binary files /dev/null and b/.docs/assets/themes/pepa-linha.png differ diff --git a/.docs/assets/themes/pokorny.png b/.docs/assets/themes/pokorny.png new file mode 100644 index 0000000..a928d40 Binary files /dev/null and b/.docs/assets/themes/pokorny.png differ diff --git a/.docs/assets/themes/price.png b/.docs/assets/themes/price.png new file mode 100644 index 0000000..eb8c104 Binary files /dev/null and b/.docs/assets/themes/price.png differ diff --git a/.docs/assets/themes/rmsoft.png b/.docs/assets/themes/rmsoft.png new file mode 100644 index 0000000..4f0deb8 Binary files /dev/null and b/.docs/assets/themes/rmsoft.png differ diff --git a/.docs/assets/themes/rmsoft_blue-dark.png b/.docs/assets/themes/rmsoft_blue-dark.png new file mode 100644 index 0000000..d3ba1ef Binary files /dev/null and b/.docs/assets/themes/rmsoft_blue-dark.png differ diff --git a/.docs/assets/themes/rmsoft_blue.png b/.docs/assets/themes/rmsoft_blue.png new file mode 100644 index 0000000..16219a5 Binary files /dev/null and b/.docs/assets/themes/rmsoft_blue.png differ diff --git a/.docs/assets/themes/win98.png b/.docs/assets/themes/win98.png new file mode 100644 index 0000000..7cd96e6 Binary files /dev/null and b/.docs/assets/themes/win98.png differ diff --git a/README.md b/README.md index 3769777..1d26987 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@

-![Adminer](https://rawgit.com/dockette/adminer/master/.docs/assets/adminer.png) +![Adminer](.docs/assets/adminer.png) ------ @@ -75,7 +75,68 @@ docker run \ You should take a look to the official github profile (https://github.com/dg/adminer-custom). -![Adminer DG](https://rawgit.com/dockette/adminer/master/.docs/assets/adminer-dg.png) +![Adminer DG](.docs/assets/adminer-dg.png) + +## Themes + +You can apply a theme by setting the `ADMINER_THEME` environment variable: + +```sh +docker run \ + --rm + -p 8000:80 + -e ADMINER_THEME=dracula + dockette/adminer:full +``` + +If the specified theme is not found, the container will list all available themes. + +### Available Themes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
default
adminer-dark
brade
bueltge
dracula
esterka
flat
galkaev
haeckel
hever
konya
lavender-light
lucas-sandery
mancave
mvt
nette
ng9
nicu
pappu687
paranoiq
pepa-linha
pokorny
price
rmsoft
rmsoft_blue
rmsoft_blue-dark
win98
## Maintenance diff --git a/adminer-full/Dockerfile b/adminer-full/Dockerfile index 052af99..13726c8 100644 --- a/adminer-full/Dockerfile +++ b/adminer-full/Dockerfile @@ -29,6 +29,8 @@ RUN echo '@community http://nl.alpinelinux.org/alpine/v3.22/community' >> /etc/a unzip /tmp/adminer-$ADMINER_VERSION.zip -d /tmp && \ mkdir -p /srv/plugins && \ mv /tmp/adminer-$ADMINER_VERSION/plugins/* /srv/plugins/ 2>/dev/null || true && \ + mkdir -p /srv/designs && \ + mv /tmp/adminer-$ADMINER_VERSION/designs/* /srv/designs/ 2>/dev/null || true && \ rm -rf /tmp/* && \ mkdir -p /srv/adminer-plugins && \ ln -s /usr/bin/php84 /usr/bin/php && \ diff --git a/adminer-full/entrypoint.sh b/adminer-full/entrypoint.sh index 03202b8..2023901 100644 --- a/adminer-full/entrypoint.sh +++ b/adminer-full/entrypoint.sh @@ -27,6 +27,27 @@ else echo "[adminer] No driver plugins directory found at /srv/plugins/drivers, skipping..." fi +# Copy theme CSS files based on ADMINER_THEME environment variable +if [ -n "${ADMINER_THEME}" ]; then + THEME_DIR="/srv/designs/${ADMINER_THEME}" + if [ -d "${THEME_DIR}" ]; then + if [ -f "${THEME_DIR}/adminer.css" ]; then + cp "${THEME_DIR}/adminer.css" /srv/adminer.css + echo "[adminer] Theme '${ADMINER_THEME}' applied successfully." + else + echo "[adminer] Warning: Theme '${ADMINER_THEME}' does not contain adminer.css" + fi + if [ -f "${THEME_DIR}/adminer-dark.css" ]; then + cp "${THEME_DIR}/adminer-dark.css" /srv/adminer-dark.css + echo "[adminer] Dark mode CSS for theme '${ADMINER_THEME}' applied." + fi + else + echo "[adminer] Warning: Theme '${ADMINER_THEME}' not found in /srv/designs/" + echo "[adminer] Available themes:" + ls -1 /srv/designs/ 2>/dev/null || echo "[adminer] No themes available." + fi +fi + # Set default values if not provided MEMORY=${MEMORY:-256M} UPLOAD=${UPLOAD:-2048M}