proxy
This commit is contained in:
parent
5827aafda4
commit
2f38044f5a
5 changed files with 9 additions and 20 deletions
docker/proxy
|
@ -3,10 +3,8 @@ FROM jc21/nginx-proxy-manager:2.10.4
|
|||
LABEL maintainer="Websoft9<help@websoft9.com>"
|
||||
LABEL version="2.10.4"
|
||||
|
||||
RUN apt-get update && apt-get install -y curl supervisor jq
|
||||
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY config/user.sh /user.sh
|
||||
COPY config/entrypoint.sh /entrypoint.sh
|
||||
RUN apt-get update && apt-get install -y curl jq
|
||||
COPY ./config/initproxy.conf /data/nginx/proxy_host/
|
||||
RUN chmod +x /user.sh /entrypoint.sh
|
||||
COPY ./s6/user /etc/s6-overlay/s6-rc.d/user
|
||||
RUN chmod -R 755 /etc/s6-overlay/s6-rc.d/user
|
||||
ENTRYPOINT ["/init"]
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# start by supervisord
|
||||
/usr/bin/supervisord
|
||||
supervisorctl start all
|
||||
# change user and password
|
||||
bash /user.sh
|
||||
tail -f /dev/null
|
|
@ -1,7 +0,0 @@
|
|||
[supervisord]
|
||||
nodaemon=false
|
||||
|
||||
[program:nginxproxymanage]
|
||||
command=/init
|
||||
autostart=true
|
||||
directory=/
|
6
docker/proxy/s6/user/run
Normal file
6
docker/proxy/s6/user/run
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
[[ -f ./setup ]] && source ./setup
|
||||
pushd /root >/dev/null
|
||||
exec su-exec root /bin/echo ""
|
||||
popd
|
Loading…
Add table
Reference in a new issue