mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
proxy image
This commit is contained in:
parent
d1662c11c3
commit
3498a47eff
@ -3,9 +3,10 @@ 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
|
||||
COPY user.sh /user.sh
|
||||
COPY initproxy.conf /data/nginx/proxy_host
|
||||
RUN chmod +x /user.sh
|
||||
# There is ENTRYPOINT in jc21/nginx-proxy-manager, no CMD
|
||||
CMD ["/user.sh"]
|
||||
RUN apt-get update && apt-get install -y curl supervisor
|
||||
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY config/user.sh /user.sh
|
||||
COPY config/entrypoint.sh /entrypoint.sh
|
||||
COPY ./config/initproxy.conf /data/nginx/proxy_host
|
||||
RUN chmod +x /user.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
8
docker/proxy/config/entrypoint.sh
Normal file
8
docker/proxy/config/entrypoint.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# start by supervisord
|
||||
/usr/bin/supervisord
|
||||
supervisorctl start all
|
||||
# change user and password
|
||||
bash /user.sh
|
||||
tail -f /dev/null
|
7
docker/proxy/config/supervisord.conf
Normal file
7
docker/proxy/config/supervisord.conf
Normal file
@ -0,0 +1,7 @@
|
||||
[supervisord]
|
||||
nodaemon=false
|
||||
|
||||
[program:nginxproxymanage]
|
||||
command=/init
|
||||
autostart=true
|
||||
directory=/
|
Loading…
Reference in New Issue
Block a user