Exec supervisord
This commit is contained in:
parent
407f8817cc
commit
0cf409047c
|
@ -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
5
start
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue