File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed
Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,11 @@ COPY ./docker/uwsgi/uwsgi.ini /etc/uwsgi/uwsgi.ini
9494COPY ./docker/uwsgi/consul-template-uwsgi.conf /etc/consul-template-uwsgi.conf
9595RUN touch /etc/service/uwsgi/down
9696
97+ # Standalone version of uwsgi that doesn't require consul
98+ COPY ./docker/uwsgistandalone/uwsgi.service /etc/service/uwsgistandalone/run
99+ COPY ./docker/uwsgistandalone/uwsgi.ini /etc/uwsgi/uwsgi.ini
100+ RUN touch /etc/service/uwsgistandalone/down
101+
97102# hl_extractor service files
98103COPY ./docker/hl_extractor/hl_extractor.service /etc/service/hl_extractor/run
99104COPY docker/hl_extractor/consul-template-hl-extractor.conf /etc/consul-template-hl-extractor.conf
Original file line number Diff line number Diff line change 77# All services contain a name and an environment (e.g. acousticbrainz-web-prod).
88# Set DEPLOY_ENV to 'prod' or 'beta' to indicate this
99
10+ if [ " ${CONTAINER_ROLE} " = " acousticbrainz-standalone" ]
11+ then
12+ rm -f /etc/service/uwsgistandalone/down
13+ exit 0
14+ fi
15+
1016if [ " ${CONTAINER_ROLE} " = " acousticbrainz-web-${DEPLOY_ENV} " ]
1117then
1218 rm -f /etc/service/uwsgi/down
Original file line number Diff line number Diff line change 1+ [uwsgi]
2+ master = true
3+ http = 0.0.0.0:3031
4+ module = server
5+ callable = application
6+ chdir = /code
7+ enable-threads = true
8+ processes = 100
9+ log-x-forwarded-for = true
10+ disable-logging = true
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ exec chpst -uacousticbrainz:acousticbrainz uwsgi --die-on-term /etc/uwsgi/uwsgi.ini
You can’t perform that action at this time.
0 commit comments