From e2e82b1a2e85d55e8b54c360cf72311aaee96042 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Fri, 14 Jul 2023 16:29:47 +0200 Subject: [PATCH] Replace docker-compose to gunicorn run --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6adb841..ccc6df8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,12 +4,12 @@ services: build: postgres-hstore restart: always environment: - - POSTGRES_HOST_AUTH_METHOD=trust + - POSTGRES_HOST_AUTH_METHOD=trust web: build: . restart: always - command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000" + command: bash -c "python manage.py migrate && gunicorn -b 0.0.0.0:8000 spejstore.wsgi:application" volumes: - .:/code ports: