Replace docker-compose to gunicorn run

pull/1/head
palid 2023-07-14 16:29:47 +02:00
parent 8210381027
commit e2e82b1a2e
Signed by: palid
SSH Key Fingerprint: SHA256:Mus3wCd2x6nxtARI0DpWGT7lIWbNy3R90BVDg0j35PI
1 changed files with 2 additions and 2 deletions

View File

@ -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: