diff --git a/docker-compose.yml b/docker-compose.yml index 9da577e..15f1a32 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3' +version: '2.3' services: db: @@ -12,6 +12,7 @@ services: web: build: . + runtime: nvidia volumes: - .:/comixify - static_volume:/comixify/static @@ -26,9 +27,9 @@ services: tty: true nginx: - image: nginx:1.13 + image: nginx ports: - - 8008:80 + - 80:80 volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf - static_volume:/comixify/static diff --git a/nginx.conf b/nginx.conf index 7ddbac3..dcb7907 100644 --- a/nginx.conf +++ b/nginx.conf @@ -8,10 +8,10 @@ server { client_max_body_size 50M; location / { # everything is passed to Gunicorn - proxy_pass http://hello_server; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_redirect off; + proxy_pass http://hello_server; } location /static/ { alias /comixify/static/; diff --git a/settings/settings.py b/settings/settings.py index bd3ff6c..2fdf508 100644 --- a/settings/settings.py +++ b/settings/settings.py @@ -25,7 +25,7 @@ SECRET_KEY = 'secret_123' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['35.237.219.127'] # Application definition