proxy image

This commit is contained in:
qiaofeng1227 2023-09-21 10:20:02 +08:00
parent d1662c11c3
commit 3498a47eff
5 changed files with 22 additions and 6 deletions

View File

@ -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"]

View 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

View File

@ -0,0 +1,7 @@
[supervisord]
nodaemon=false
[program:nginxproxymanage]
command=/init
autostart=true
directory=/