From e62fb1d6099038bf96caeb6a67a9003c3c68b0c7 Mon Sep 17 00:00:00 2001 From: p0lygun Date: Sat, 22 Apr 2023 02:03:03 +0530 Subject: [PATCH] feat: use gunicorn conf to set a few command line args; closes #178 --- bfportal/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bfportal/docker-compose.yml b/bfportal/docker-compose.yml index 42f964c..702834e 100644 --- a/bfportal/docker-compose.yml +++ b/bfportal/docker-compose.yml @@ -22,7 +22,7 @@ services: bfportal_gg_production: image: docker.pkg.github.com/battlefield-portal-community/bfportal.gg/main:latest restart: always - command: bash -c "python manage.py migrate --noinput && python manage.py ensure_superuser --username bfportal --email superuser@bfportal.com --password '${SU_PASSWD}' && python manage.py ensure_initialization && gunicorn bfportal.wsgi:application --workers 4 --bind 0.0.0.0:${PRODUCTION_PORT}" + command: bash -c "python manage.py migrate --noinput && python manage.py ensure_superuser --username bfportal --email superuser@bfportal.com --password '${SU_PASSWD}' && python manage.py ensure_initialization && gunicorn --workers 4 --bind 0.0.0.0:${PRODUCTION_PORT}" user: "33:33" ports: - "${PRODUCTION_PORT}:${PRODUCTION_PORT}" @@ -75,7 +75,7 @@ services: bfportal_gg_dev: image: docker.pkg.github.com/battlefield-portal-community/bfportal.gg/dev:latest restart: always - command: bash -c "python manage.py migrate --noinput && python manage.py ensure_superuser --username bfportal --email superuser@bfportal.com --password '${SU_PASSWD}' && python manage.py ensure_initialization && gunicorn bfportal.wsgi:application --workers 4 --bind 0.0.0.0:${DEVEL_PORT}" + command: bash -c "python manage.py migrate --noinput && python manage.py ensure_superuser --username bfportal --email superuser@bfportal.com --password '${SU_PASSWD}' && python manage.py ensure_initialization && gunicorn --workers 4 --bind 0.0.0.0:${DEVEL_PORT}" user: "33:33" ports: - "${DEVEL_PORT}:${DEVEL_PORT}"