A simple light-weight image for adminer, mysql only
595
A simple light-weight image for adminer. Adminer is a database management in a single PHP file.
This image based on Alpine Linux 3.18, PHP 8.1 (and 7.4) and Adminer 4.8.1 (MySQL Only). Image Variant includes
on port 8000 or any port you prefer
docker run \
--rm
-p 8000:80
leyume/adminer
docker-compose.yml
adminer:
image: leyume/adminer
restart: always
ports:
- 8000:80
To build or further customise your image, here is the example of the Dockerfile
FROM alpine:3.18
LABEL maintainer="L eye <[email protected]>"
ENV ADMINER_VERSION=4.8.1
ENV MEMORY=256M
ENV UPLOAD=1024M
RUN apk update && \
apk upgrade && \
apk add \
ca-certificates \
php81 \
php81-session \
php81-mysqli \
dumb-init && \
apk del ca-certificates && \
rm -rf /var/cache/apk/*
WORKDIR /srv
COPY adminer/. /srv/
EXPOSE 80
ENTRYPOINT ["dumb-init", "--"]
CMD /usr/bin/php \
-d memory_limit=$MEMORY \
-d upload_max_filesize=$UPLOAD \
-d post_max_size=$UPLOAD \
-S 0.0.0.0:80
Place Adminer files (index.php and adminer.css) in adminer folder.
Directory structure
adminer
| - adminer.css
| - index.php
Dockerfile
Content type
Image
Digest
sha256:a0420e0d8…
Size
9.2 MB
Last updated
about 3 years ago
docker pull leyume/adminer