Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tswicegood/docker-gunicorn
https://github.com/tswicegood/docker-gunicorn
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tswicegood/docker-gunicorn
- Owner: tswicegood
- Created: 2014-08-06T20:13:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-06T20:14:06.000Z (over 10 years ago)
- Last Synced: 2024-04-14T14:50:13.362Z (7 months ago)
- Language: Shell
- Size: 105 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-gunicorn
Simple container for running [gunicorn][].## Usage
The default configuration assumes you have a WSGI application available inside
`/app` that is executed with `server:app`. You are expected to mount a data
volume to that directory.```bash
docker run --publish-all -v /path/to/wsgi-app:/app tswicegood/gunicorn
```Note, this exposes port 8000.
## Configuration
Configuration is loaded via gunicorn's `--config` parameter and is located in
`/etc/gunicorn/config.py`. You can override settings by mounting a data volume
to `/etc/gunicorn` with a custom `config.py` file.The default configuration looks like this:
```python
bind = "0.0.0.0:8000"
chdir = "/app"
loglevel = "INFO"
workers = "4"
worker_class = "gevent"
reload = Trueerrorlog = "-"
accesslog = "-"
```[gunicorn]: http://gunicorn.org/