Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .docs/assets/themes/adminer-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/brade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/bueltge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/dracula.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/esterka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/flat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/galkaev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/haeckel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/hever.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/konya.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/lavender-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/lucas-sandery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/mancave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/mvt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/nette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/ng9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/nicu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/pappu687.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/paranoiq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/pepa-linha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/pokorny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/price.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/rmsoft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/rmsoft_blue-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .docs/assets/themes/rmsoft_blue.png
Binary file added .docs/assets/themes/win98.png
65 changes: 63 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<a href="https://github.com/sponsors/f3l1x"><img src="https://badgen.net/badge/sponsor/donations/F96854"></a>
</p>

![Adminer](https://rawgit.com/dockette/adminer/master/.docs/assets/adminer.png)
![Adminer](.docs/assets/adminer.png)

------

Expand Down Expand Up @@ -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

<table>
<tr>
<td align="center"><strong>default</strong><br><img src=".docs/assets/themes/default.png" width="200"></td>
<td align="center"><strong>adminer-dark</strong><br><img src=".docs/assets/themes/adminer-dark.png" width="200"></td>
<td align="center"><strong>brade</strong><br><img src=".docs/assets/themes/brade.png" width="200"></td>
<td align="center"><strong>bueltge</strong><br><img src=".docs/assets/themes/bueltge.png" width="200"></td>
<td align="center"><strong>dracula</strong><br><img src=".docs/assets/themes/dracula.png" width="200"></td>
</tr>
<tr>
<td align="center"><strong>esterka</strong><br><img src=".docs/assets/themes/esterka.png" width="200"></td>
<td align="center"><strong>flat</strong><br><img src=".docs/assets/themes/flat.png" width="200"></td>
<td align="center"><strong>galkaev</strong><br><img src=".docs/assets/themes/galkaev.png" width="200"></td>
<td align="center"><strong>haeckel</strong><br><img src=".docs/assets/themes/haeckel.png" width="200"></td>
<td align="center"><strong>hever</strong><br><img src=".docs/assets/themes/hever.png" width="200"></td>
</tr>
<tr>
<td align="center"><strong>konya</strong><br><img src=".docs/assets/themes/konya.png" width="200"></td>
<td align="center"><strong>lavender-light</strong><br><img src=".docs/assets/themes/lavender-light.png" width="200"></td>
<td align="center"><strong>lucas-sandery</strong><br><img src=".docs/assets/themes/lucas-sandery.png" width="200"></td>
<td align="center"><strong>mancave</strong><br><img src=".docs/assets/themes/mancave.png" width="200"></td>
<td align="center"><strong>mvt</strong><br><img src=".docs/assets/themes/mvt.png" width="200"></td>
</tr>
<tr>
<td align="center"><strong>nette</strong><br><img src=".docs/assets/themes/nette.png" width="200"></td>
<td align="center"><strong>ng9</strong><br><img src=".docs/assets/themes/ng9.png" width="200"></td>
<td align="center"><strong>nicu</strong><br><img src=".docs/assets/themes/nicu.png" width="200"></td>
<td align="center"><strong>pappu687</strong><br><img src=".docs/assets/themes/pappu687.png" width="200"></td>
<td align="center"><strong>paranoiq</strong><br><img src=".docs/assets/themes/paranoiq.png" width="200"></td>
</tr>
<tr>
<td align="center"><strong>pepa-linha</strong><br><img src=".docs/assets/themes/pepa-linha.png" width="200"></td>
<td align="center"><strong>pokorny</strong><br><img src=".docs/assets/themes/pokorny.png" width="200"></td>
<td align="center"><strong>price</strong><br><img src=".docs/assets/themes/price.png" width="200"></td>
<td align="center"><strong>rmsoft</strong><br><img src=".docs/assets/themes/rmsoft.png" width="200"></td>
<td align="center"><strong>rmsoft_blue</strong><br><img src=".docs/assets/themes/rmsoft_blue.png" width="200"></td>
</tr>
<tr>
<td align="center"><strong>rmsoft_blue-dark</strong><br><img src=".docs/assets/themes/rmsoft_blue-dark.png" width="200"></td>
<td align="center"><strong>win98</strong><br><img src=".docs/assets/themes/win98.png" width="200"></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

## Maintenance

Expand Down
2 changes: 2 additions & 0 deletions adminer-full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
21 changes: 21 additions & 0 deletions adminer-full/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Loading