mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
placing my faith in history
This commit is contained in:
@@ -22,9 +22,16 @@ RUN ln -s /etc/nginx/sites-available/flask.conf /etc/nginx/sites-enabled/flask.c
|
|||||||
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
|
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
|
||||||
|
|
||||||
# Setup supervisord
|
# Setup supervisord
|
||||||
RUN mkdir -p /log/supervisor
|
RUN mkdir -p /var/log/supervisor
|
||||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
COPY gunicorn.conf /etc/supervisor/conf.d/gunicorn.conf
|
COPY gunicorn.conf /etc/supervisor/conf.d/gunicorn.conf
|
||||||
|
|
||||||
|
# Permissions
|
||||||
|
RUN chmod -R 775 . && \
|
||||||
|
chgrp -R node .
|
||||||
|
|
||||||
|
# Entrypoint
|
||||||
|
USER root:node
|
||||||
|
|
||||||
# Start processes
|
# Start processes
|
||||||
CMD ["/usr/sbin/nginx"]
|
CMD ["/usr/sbin/nginx"]
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
[supervisord]
|
[supervisord]
|
||||||
nodaemon=true
|
nodaemon=true
|
||||||
logfile=/dev/null
|
|
||||||
loglevel=critical
|
|
||||||
|
|
||||||
[program:nginx]
|
[program:nginx]
|
||||||
command=/usr/sbin/nginx
|
command=/usr/sbin/nginx
|
||||||
logfile=/dev/null
|
|
||||||
loglevel=critical
|
|
||||||
Reference in New Issue
Block a user