Commit c4f9f348 authored by Thomas Downes's avatar Thomas Downes Committed by GraceDB

Launch gunicorn as gracedb:django_writers

parent 9e2c8e0c
...@@ -79,4 +79,7 @@ RUN DJANGO_SETTINGS_MODULE=${SETTINGS_MODULE} \ ...@@ -79,4 +79,7 @@ RUN DJANGO_SETTINGS_MODULE=${SETTINGS_MODULE} \
DJANGO_PRIMARY_FQDN=fake_fqdn \ DJANGO_PRIMARY_FQDN=fake_fqdn \
python manage.py collectstatic --noinput python manage.py collectstatic --noinput
RUN groupadd -g 503 django_writers && \
useradd -M -u 50001 -g django_writers -s /bin/false gracedb
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
...@@ -8,8 +8,8 @@ priority=3 ...@@ -8,8 +8,8 @@ priority=3
[program:gracedb] [program:gracedb]
command=/usr/local/bin/gunicorn config.wsgi:application --reload --config /app/gracedb_project/config/gunicorn_config.py command=/usr/local/bin/gunicorn config.wsgi:application --reload --config /app/gracedb_project/config/gunicorn_config.py
directory=/app/gracedb_project directory=/app/gracedb_project
#user=www-data user=gracedb
#group=www-data group=django_writers
stdout_logfile=/dev/fd/1 stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
redirect_stderr=true redirect_stderr=true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment