Pause 2 seconds before starting nginx

This hopefully lets nginx start after dockergen is done.

This prevents nginx from failing when there is a custom nginx config
that depends on things in the generated nginx config.

Fixes: GH-378
This commit is contained in:
Marc Abramowitz 2016-03-02 09:40:37 -08:00
parent 2b24c1712a
commit 048bfad743

View file

@ -1,2 +1,2 @@
nginx: nginx
dockergen: docker-gen -watch -only-exposed -notify "nginx -s reload" /app/nginx.tmpl /etc/nginx/conf.d/default.conf
nginx: sleep 2; echo "Starting nginx..."; nginx
dockergen: echo "Starting docker-gen..."; docker-gen -watch -only-exposed -notify "nginx -s reload" /app/nginx.tmpl /etc/nginx/conf.d/default.conf