diff --git a/docker-compose.yml b/docker-compose.yml index 229b977..bd1682c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: "3.9" services: postgres: restart: always - image: postgres:15 + image: postgres:12 container_name: postgres healthcheck: test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] @@ -29,7 +29,7 @@ services: env_file: - ../env command: > - bash -c "./manage.py collectstatic --noinput && ./manage.py migrate && gunicorn -b 0.0.0.0:8000 repcofkk.wsgi:application" + bash -c "python ./manage.py collectstatic --noinput && ./manage.py migrate && gunicorn -b 0.0.0.0:8000 repcofkk.wsgi:application" nginx: build: dockerfile: ./Dockerfile diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index f2ee0c0..5ca164f 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -12,10 +12,10 @@ server { } location /static/ { - alias /yt/static/; + alias /cybercode/static/; } location /media/ { - alias /yt/media/; + alias /cybercode/media/; } } \ No newline at end of file