Skip to content

Instantly share code, notes, and snippets.

@m-richo
Last active August 29, 2015 14:27
Show Gist options
  • Save m-richo/63a8b17098084282ec47 to your computer and use it in GitHub Desktop.
Save m-richo/63a8b17098084282ec47 to your computer and use it in GitHub Desktop.
Docker bootstrap script
#!/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