Add network aliases for proper DNS handling
parent
2bf8ef019f
commit
6f120a4a19
|
@ -14,5 +14,6 @@ docker run \
|
||||||
-v ${PWD}/data/conf/pdns/:/etc/powerdns/ \
|
-v ${PWD}/data/conf/pdns/:/etc/powerdns/ \
|
||||||
--network=${DOCKER_NETWORK} \
|
--network=${DOCKER_NETWORK} \
|
||||||
-h pdns \
|
-h pdns \
|
||||||
|
--network-alias=pdns \
|
||||||
--name ${NAME} \
|
--name ${NAME} \
|
||||||
-d andryyy/mailcow-dockerized:pdns
|
-d andryyy/mailcow-dockerized:pdns
|
||||||
|
|
|
@ -88,6 +88,7 @@ docker run \
|
||||||
--name=${NAME} \
|
--name=${NAME} \
|
||||||
--network=${DOCKER_NETWORK} \
|
--network=${DOCKER_NETWORK} \
|
||||||
-h mysql \
|
-h mysql \
|
||||||
|
--network-alias=mysql \
|
||||||
-e MYSQL_ROOT_PASSWORD=${DBROOT} \
|
-e MYSQL_ROOT_PASSWORD=${DBROOT} \
|
||||||
-e MYSQL_DATABASE=${DBNAME} \
|
-e MYSQL_DATABASE=${DBNAME} \
|
||||||
-e MYSQL_USER=${DBUSER} \
|
-e MYSQL_USER=${DBUSER} \
|
||||||
|
|
|
@ -33,6 +33,7 @@ fi
|
||||||
docker run \
|
docker run \
|
||||||
-v ${PWD}/data/db/redis/:/data/ \
|
-v ${PWD}/data/db/redis/:/data/ \
|
||||||
--network=${DOCKER_NETWORK} \
|
--network=${DOCKER_NETWORK} \
|
||||||
|
--network-alias=redis \
|
||||||
-h redis \
|
-h redis \
|
||||||
--name=${NAME} \
|
--name=${NAME} \
|
||||||
-d redis:${REDISVERS} --appendonly yes
|
-d redis:${REDISVERS} --appendonly yes
|
||||||
|
|
|
@ -23,6 +23,7 @@ docker run \
|
||||||
-v ${PWD}/data/dkim/:/shared/dkim/ \
|
-v ${PWD}/data/dkim/:/shared/dkim/ \
|
||||||
-d --network=${DOCKER_NETWORK} \
|
-d --network=${DOCKER_NETWORK} \
|
||||||
--name ${NAME} \
|
--name ${NAME} \
|
||||||
|
--network-alias=phpfpm \
|
||||||
-h phpfpm \
|
-h phpfpm \
|
||||||
php:${PHPVERS}
|
php:${PHPVERS}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@ docker run \
|
||||||
-v ${PWD}/data/conf/nginx/:/etc/nginx/conf.d/:ro \
|
-v ${PWD}/data/conf/nginx/:/etc/nginx/conf.d/:ro \
|
||||||
--network=${DOCKER_NETWORK} \
|
--network=${DOCKER_NETWORK} \
|
||||||
-h nginx \
|
-h nginx \
|
||||||
|
--network-alias=nginx \
|
||||||
-d nginx:${NGINXVERS}
|
-d nginx:${NGINXVERS}
|
||||||
|
|
||||||
echo "Installaing SOGo web resource files..."
|
echo "Installaing SOGo web resource files..."
|
||||||
|
|
|
@ -14,5 +14,6 @@ docker run \
|
||||||
-v ${PWD}/data/conf/rmilter/:/etc/rmilter.conf.d/:ro \
|
-v ${PWD}/data/conf/rmilter/:/etc/rmilter.conf.d/:ro \
|
||||||
--network=${DOCKER_NETWORK} \
|
--network=${DOCKER_NETWORK} \
|
||||||
-h rmilter \
|
-h rmilter \
|
||||||
|
--network-alias=rmilter
|
||||||
--name ${NAME} \
|
--name ${NAME} \
|
||||||
-d andryyy/mailcow-dockerized:rmilter
|
-d andryyy/mailcow-dockerized:rmilter
|
||||||
|
|
|
@ -21,5 +21,6 @@ fi
|
||||||
docker run \
|
docker run \
|
||||||
--network=${DOCKER_NETWORK} \
|
--network=${DOCKER_NETWORK} \
|
||||||
-h memcached \
|
-h memcached \
|
||||||
|
--network-alias=memcached \
|
||||||
--name=${NAME} \
|
--name=${NAME} \
|
||||||
-d memcached
|
-d memcached
|
||||||
|
|
Loading…
Reference in New Issue