Container to run WSGI application with gunicorn
132
This container run gunicorn and save logs into files and standard output.
version: "3"
services:
example:
build: olive007/gunicorn
volumes:
# The source code have to be mounted into the /src/app folder.
# It is recommended to mount it in read-only mode
- ./src:/srv/app:ro
ports:
# The port use by gunicorn to serve the HTTP server is 8000.
- "80:8000"
environment:
# The python path is required.
# The first part (before the ':') is the path to the file separated by '.'.
# The second part (after the ':') is the name of the variable that contain the WSGI application.
APP_MODULE: "wsgi:api"
Content type
Image
Digest
Size
327.6 MB
Last updated
almost 6 years ago
docker pull olive007/gunicorn