Add alias for container with custom dns
parent
855efcf542
commit
e51a932bb5
|
@ -31,15 +31,18 @@ else
|
||||||
build
|
build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Needs network-alias because of different dns
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
-v ${PWD}/data/conf/rspamd/override.d/:/etc/rspamd/override.d/ro \
|
-v ${PWD}/data/conf/rspamd/override.d/:/etc/rspamd/override.d:ro \
|
||||||
-v ${PWD}/data/conf/rspamd/local.d/:/etc/rspamd/local.d/ro \
|
-v ${PWD}/data/conf/rspamd/local.d/:/etc/rspamd/local.d:ro \
|
||||||
-v ${PWD}/data/conf/rspamd/lua/:/etc/rspamd/lua/:ro \
|
-v ${PWD}/data/conf/rspamd/lua/:/etc/rspamd/lua/:ro \
|
||||||
-v ${PWD}/data/dkim/txt/:/etc/rspamd/dkim/txt/:ro \
|
-v ${PWD}/data/dkim/txt/:/etc/rspamd/dkim/txt/:ro \
|
||||||
-v ${PWD}/data/dkim/keys/:/etc/rspamd/dkim/keys/:ro \
|
-v ${PWD}/data/dkim/keys/:/etc/rspamd/dkim/keys/:ro \
|
||||||
--dns=${PDNS_IP} \
|
--dns=${PDNS_IP} \
|
||||||
--dns-search=${DOCKER_NETWORK} \
|
--dns-search=${DOCKER_NETWORK} \
|
||||||
--network=${DOCKER_NETWORK} \
|
--network=${DOCKER_NETWORK} \
|
||||||
|
--network-alias=rspamd
|
||||||
-h rspamd \
|
-h rspamd \
|
||||||
--name ${NAME} \
|
--name ${NAME} \
|
||||||
-d rspamd
|
-d rspamd
|
||||||
|
|
Loading…
Reference in New Issue