mirror of
https://github.com/rlister/dockerfiles.git
synced 2025-12-11 00:36:27 +00:00
use default confdir of /etc/confd
This commit is contained in:
@@ -7,14 +7,14 @@ set -eo pipefail
|
||||
export ETCD=${ETCD:-http://172.17.42.1:4001}
|
||||
|
||||
## wait until we can make initial nginx config
|
||||
until ./confd -verbose -onetime -node $ETCD -confdir /app ; do
|
||||
until ./confd -verbose -onetime -node $ETCD ; do
|
||||
echo "confd waiting to create initial nginx config"
|
||||
sleep 5
|
||||
done
|
||||
|
||||
## run confd to poll etcd for changes
|
||||
echo "confd polling etcd ..."
|
||||
./confd -verbose -interval 10 -node $ETCD -confdir /app &
|
||||
./confd -verbose -interval 10 -node $ETCD &
|
||||
|
||||
## run nginx in foreground
|
||||
nginx -g 'daemon off;'
|
||||
|
||||
Reference in New Issue
Block a user