Public | Automated Build

Last pushed: a year ago
Short Description
adminer-for-docker
Full Description

adminer-for-docker

A Docker image for Adminer.

Run the container

CONTAINER="adminer-data" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -v /adminer \
  --entrypoint /bin/echo \
  dockerizedrupal/adminer:2.0.0 "Data-only container for Adminer."

CONTAINER="adminer" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -p 80:80 \
  -p 443:443 \
  --volumes-from adminer-data \
  -e SERVER_NAME="localhost" \
  -e TIMEZONE="Etc/UTC" \
  -e TIMEOUT="300" \
  -e PROTOCOLS="https,http" \
  -e MYSQL_HOST="" \
  -e MYSQL_PORT="3306" \
  -e MYSQL_USERNAME="container" \
  -e MYSQL_PASSWORD="container" \
  -e PHP_INI_MAX_EXECUTION_TIME="900" \
  -e HTTP_BASIC_AUTH="Off" \
  -e HTTP_BASIC_AUTH_USERNAME="container" \
  -e HTTP_BASIC_AUTH_PASSWORD="" \
  -d \
  dockerizedrupal/adminer:2.0.0

Connect directly to MySQL server by linking to another Docker container

CONTAINER="adminer-data" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -v /adminer \
  --entrypoint /bin/echo \
  dockerizedrupal/adminer:2.0.0 "Data-only container for Adminer."

CONTAINER="adminer" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -p 80:80 \
  -p 443:443 \
  --volumes-from adminer-data \
  --link mysql:mysql \
  -e SERVER_NAME="localhost" \
  -e TIMEZONE="Etc/UTC" \
  -e PROTOCOLS="https,http" \
  -e MYSQL_USERNAME="container" \
  -e MYSQL_PASSWORD="container" \
  -e PHP_INI_MAX_EXECUTION_TIME="900" \
  -e HTTP_BASIC_AUTH="Off" \
  -e HTTP_BASIC_AUTH_USERNAME="container" \
  -e HTTP_BASIC_AUTH_PASSWORD="" \
  -d \
  dockerizedrupal/adminer:2.0.0

Build the image

TMP="$(mktemp -d)" \
  && git clone https://github.com/dockerizedrupal/adminer-for-docker.git "${TMP}" \
  && cd "${TMP}" \
  && git checkout 2.0.0 \
  && sudo docker build -t dockerizedrupal/adminer:2.0.0 . \
  && cd -

License

MIT

Docker Pull Command
Owner
dockerizedrupal
Source Repository

Comments (0)