diff --git a/docker-compose copy.yml b/docker-compose copy.yml new file mode 100644 index 0000000..198934e --- /dev/null +++ b/docker-compose copy.yml @@ -0,0 +1,11 @@ +version: '3.8' + +services: + web: + build: . + volumes: + - .:/app + ports: + - "8080:8000" + environment: + - DEBUG=1 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 198934e..a50bbe6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: web: build: . @@ -8,4 +6,6 @@ services: ports: - "8080:8000" environment: - - DEBUG=1 \ No newline at end of file + - DEBUG=1 + # Новая команда для Gunicorn + command: gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 3 \ No newline at end of file