Switch to Gunicorn
This commit is contained in:
11
docker-compose copy.yml
Normal file
11
docker-compose copy.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
ports:
|
||||||
|
- "8080:8000"
|
||||||
|
environment:
|
||||||
|
- DEBUG=1
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
@@ -9,3 +7,5 @@ services:
|
|||||||
- "8080:8000"
|
- "8080:8000"
|
||||||
environment:
|
environment:
|
||||||
- DEBUG=1
|
- DEBUG=1
|
||||||
|
# Новая команда для Gunicorn
|
||||||
|
command: gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 3
|
||||||
Reference in New Issue
Block a user