-
-
Save phpdude/3a934b899b3cd7ae5acb to your computer and use it in GitHub Desktop.
Docker uWSGI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: | |
restart: always | |
extends: | |
service: manage | |
entrypoint: bash /app/production/web/service.web.sh | |
links: | |
- db | |
- cache | |
- logstash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd /app/ | |
python manage.py migrate | |
/usr/bin/uwsgi --ini /app/production/web/uwsgi.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[uwsgi] | |
chdir = /app/ | |
pidfile = /tmp/uwsgi.pid | |
socket = 0.0.0.0:9000 | |
pythonpath = . | |
module = project.wsgi:application | |
master = true | |
processes = 25 | |
harakiri = 30 | |
buffer-size = 32768 | |
vacuum = true | |
plugins = python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment