You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postfixadmin/docker
David Goodwin a77d08a92c initial Docker readme 8 years ago
..
Dockerfile Add SQLite and PDO support 8 years ago
README.md initial Docker readme 8 years ago
docker-entrypoint.sh fall back to sqlite for docker image 8 years ago

README.md

Building

docker build --pull --rm -t postfixadmin-image .

Running

No config.local.php / no existing setup

If you do not have a config.local.php, then we fall back to look for environment variables to generate one.

POSTFIXADMIN_DB_TYPE can be one of :

  • mysqli
  • pgsql
  • sqlite
docker run -e POSTFIXADMIN_DB_TYPE=mysqli \
           -e POSTFIXADMIN_DB_HOST=whatever \
           -e POSTFIXADMIN_DB_USER=user \
           -e POSTFIXADMIN_DB_PASSWORD=topsecret \
           -e POSTFIXADMIN_DB_NAME=postfixadmin \
           --name postfixadmin \
           -p 8080:80 \
        postfixadmin-image

Note: An sqlite database is used as a fallback if you do not have a config.local.php and do not specify the above variables.

Existing config.local.php

docker run --name postfixadmin -p 8080:80 postfixadmin-image

Linking to a MySQL or PostgreSQL container

If you link the container to a MySQL or PostgreSQL container, then we attempt to generate a valid config.local.php from it.