Skip to content

Instantly share code, notes, and snippets.

@phpdude
Last active March 9, 2016 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpdude/3a934b899b3cd7ae5acb to your computer and use it in GitHub Desktop.
Save phpdude/3a934b899b3cd7ae5acb to your computer and use it in GitHub Desktop.
Docker uWSGI
web:
restart: always
extends:
service: manage
entrypoint: bash /app/production/web/service.web.sh
links:
- db
- cache
- logstash
#!/usr/bin/env bash
cd /app/
python manage.py migrate
/usr/bin/uwsgi --ini /app/production/web/uwsgi.ini
[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