Exec supervisord

This commit is contained in:
dave 2017-04-22 15:37:01 -07:00
parent 407f8817cc
commit 0cf409047c
2 changed files with 5 additions and 8 deletions

View File

@ -1,15 +1,15 @@
server { server {
listen 80 default_server; listen 80 default_server;
#listen [::]:80 default_server ipv6only=on; #listen [::]:80 default_server ipv6only=on;
root /nexus/; root /nexus/;
index index.html index.htm; index index.html index.htm;
server_name localhost; server_name localhost;
#auth_basic "Restricted"; #auth_basic "Restricted";
#auth_basic_user_file /etc/nginx/htpasswd; #auth_basic_user_file /etc/nginx/htpasswd;
location / { location / {
autoindex on; autoindex on;
try_files $uri $uri/ =404; try_files $uri $uri/ =404;

5
start
View File

@ -3,10 +3,7 @@
# run everything in start.d # run everything in start.d
find /start.d -type f -executable -exec {} \; find /start.d -type f -executable -exec {} \;
# Cleanly kill supervisor when container is stopped
trap 'kill $(jobs -p)' EXIT
chown nexus /nexus chown nexus /nexus
# start services # start services
supervisord exec supervisord