aurweb/docker-compose.prod.yml
Kevin Morris 927f5e8567
feat(docker): add gunicorn support & production default
Supply FASTAPI_BACKEND=gunicorn and FASTAPI_WORKERS=<threads_num> to
docker-compose up to use the gunicorn backend.

This is defaulted in production to gunicorn, but FASTAPI_WORKERS
should definitely be configured by any production deployment.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-16 22:53:46 -07:00

42 lines
734 B
YAML

version: "3.8"
services:
ca:
volumes:
- cache:/cache
git:
volumes:
- git_data:/aurweb/aur.git
- cache:/cache
smartgit:
volumes:
- git_data:/aurweb/aur.git
- cache:/cache
- smartgit_run:/var/run/smartgit
php-fpm:
volumes:
- cache:/cache
fastapi:
environment:
- FASTAPI_BACKEND="gunicorn"
volumes:
- cache:/cache
nginx:
volumes:
- git_data:/aurweb/aur.git
- cache:/cache
- logs:/var/log/nginx
- smartgit_run:/var/run/smartgit
volumes:
mariadb_run: {} # Share /var/run/mysqld/mysqld.sock
mariadb_data: {} # Share /var/lib/mysql
git_data: {} # Share aurweb/aur.git
smartgit_run: {}
cache: {}
logs: {}