copanier/docker/docker-compose.yml
TheCapsLock ff6bdb0f10
Docker: using Gunicorn (#55)
* docker: using gunicorn
* cleanup

Co-authored-by: CapsLock <github@legeox.net>
2021-04-07 22:26:25 +02:00

16 lines
No EOL
437 B
YAML

version: "3.9"
services:
app:
build:
context: ..
dockerfile: "./docker/Dockerfile"
command: /srv/copanier-venv/bin/gunicorn -k roll.worker.Worker copanier:app --bind 0.0.0.0:2244
static:
image: "nginx:latest"
volumes:
- "../copanier/static:/srv/copanier_static/static:ro"
- "./nginx-default.conf:/etc/nginx/conf.d/default.conf:ro"
depends_on:
- app
ports:
- 0.0.0.0:2244:80