Last active
August 29, 2015 14:27
-
-
Save m-richo/63a8b17098084282ec47 to your computer and use it in GitHub Desktop.
Docker bootstrap script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# if $proxy_domain is not set, then default to $HOSTNAME | |
export proxy_domain=${proxy_domain:-$HOSTNAME} | |
# ensure the following environment variables are set. exit script and container if not set. | |
test $backend_host | |
/usr/local/bin/confd -onetime -backend env | |
echo "Starting Nginx" | |
exec /usr/sbin/nginx -c /etc/nginx/nginx.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment