pgsql support (wip)

pull/64/head
jowi 7 years ago
parent 33db684562
commit dbe8475ed2

@ -1,7 +1,11 @@
FROM php:7.0-apache
# Install required PHP extensions
RUN docker-php-ext-install mysqli
RUN buildDeps='libpq-dev' \
&& apt-get update && apt-get install -y --no-install-recommends $buildDeps \
&& docker-php-ext-install mysqli pgsql \
&& apt-get purge -y --auto-remove $buildDeps \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
VOLUME /var/www/html

@ -12,6 +12,14 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
echo >&2 "Complete! Postfixadmin has been successfully copied to $PWD"
fi
if [ -n "${!POSTGRES_ENV_POSTGRES_*}" ]; then
: "${POSTFIXADMIN_DB_TYPE:=pgsql}"
: "${POSTFIXADMIN_DB_HOST:=postgres}"
: "${POSTFIXADMIN_DB_USER:=${POSTGRES_ENV_POSTGRES_USER}}"
: "${POSTFIXADMIN_DB_PASSWORD:=${POSTGRES_ENV_POSTGRES_PASSWORD:-}}"
: "${POSTFIXADMIN_DB_NAME:=${POSTGRES_ENV_POSTGRES_DB:-}}"
fi
if [ -n "${!MYSQL_ENV_MYSQL_*}" ]; then
: "${POSTFIXADMIN_DB_TYPE:=mysqli}"
: "${POSTFIXADMIN_DB_HOST:=mysql}"

Loading…
Cancel
Save