Add network aliases for proper DNS handling

master
andryyy 2016-12-13 22:30:45 +01:00
parent 2bf8ef019f
commit 6f120a4a19
7 changed files with 7 additions and 0 deletions

View File

@ -14,5 +14,6 @@ docker run \
-v ${PWD}/data/conf/pdns/:/etc/powerdns/ \
--network=${DOCKER_NETWORK} \
-h pdns \
--network-alias=pdns \
--name ${NAME} \
-d andryyy/mailcow-dockerized:pdns

View File

@ -88,6 +88,7 @@ docker run \
--name=${NAME} \
--network=${DOCKER_NETWORK} \
-h mysql \
--network-alias=mysql \
-e MYSQL_ROOT_PASSWORD=${DBROOT} \
-e MYSQL_DATABASE=${DBNAME} \
-e MYSQL_USER=${DBUSER} \

View File

@ -33,6 +33,7 @@ fi
docker run \
-v ${PWD}/data/db/redis/:/data/ \
--network=${DOCKER_NETWORK} \
--network-alias=redis \
-h redis \
--name=${NAME} \
-d redis:${REDISVERS} --appendonly yes

View File

@ -23,6 +23,7 @@ docker run \
-v ${PWD}/data/dkim/:/shared/dkim/ \
-d --network=${DOCKER_NETWORK} \
--name ${NAME} \
--network-alias=phpfpm \
-h phpfpm \
php:${PHPVERS}

View File

@ -32,6 +32,7 @@ docker run \
-v ${PWD}/data/conf/nginx/:/etc/nginx/conf.d/:ro \
--network=${DOCKER_NETWORK} \
-h nginx \
--network-alias=nginx \
-d nginx:${NGINXVERS}
echo "Installaing SOGo web resource files..."

View File

@ -14,5 +14,6 @@ docker run \
-v ${PWD}/data/conf/rmilter/:/etc/rmilter.conf.d/:ro \
--network=${DOCKER_NETWORK} \
-h rmilter \
--network-alias=rmilter
--name ${NAME} \
-d andryyy/mailcow-dockerized:rmilter

View File

@ -21,5 +21,6 @@ fi
docker run \
--network=${DOCKER_NETWORK} \
-h memcached \
--network-alias=memcached \
--name=${NAME} \
-d memcached