Skip to content

Commit

Permalink
Don't clobber uwsgi config file with standalone version
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Jun 28, 2022
1 parent 438d0d2 commit 8d48fac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ RUN touch /etc/service/uwsgi/down

# Standalone version of uwsgi that doesn't require consul
COPY ./docker/uwsgistandalone/uwsgi.service /etc/service/uwsgistandalone/run
COPY ./docker/uwsgistandalone/uwsgi.ini /etc/uwsgi/uwsgi.ini
COPY ./docker/uwsgistandalone/uwsgi.ini /etc/uwsgi/uwsgi-standalone.ini
RUN touch /etc/service/uwsgistandalone/down

# hl_extractor service files
Expand Down
6 changes: 3 additions & 3 deletions docker/uwsgistandalone/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[uwsgi]
master = true
http = 0.0.0.0:3031
socket = 0.0.0.0:3031
module = server
callable = application
chdir = /code
enable-threads = true
processes = 100
processes = 300
log-x-forwarded-for = true
disable-logging = true
disable-logging = true
2 changes: 1 addition & 1 deletion docker/uwsgistandalone/uwsgi.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

exec chpst -uacousticbrainz:acousticbrainz uwsgi --die-on-term /etc/uwsgi/uwsgi.ini
exec chpst -uacousticbrainz:acousticbrainz uwsgi --die-on-term /etc/uwsgi/uwsgi-standalone.ini

0 comments on commit 8d48fac

Please sign in to comment.