diff --git a/app/settings.py b/app/settings.py index eea2653..15a7a93 100644 --- a/app/settings.py +++ b/app/settings.py @@ -96,7 +96,7 @@ WSGI_APPLICATION = "app.wsgi.application" DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", - "NAME": BASE_DIR / "db.sqlite3", + "NAME": "/conf/db.sqlite3", } } diff --git a/core/templates/partials/hook-list.html b/core/templates/partials/hook-list.html index d59234c..9b3fea5 100644 --- a/core/templates/partials/hook-list.html +++ b/core/templates/partials/hook-list.html @@ -50,7 +50,7 @@ - + diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index 58cbea8..3d518e0 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -6,7 +6,7 @@ services: build: ${PORTAINER_GIT_DIR}/docker/prod volumes: - ${PORTAINER_GIT_DIR}:/code - - ${APP_DATABASE_FILE}:/code/db.sqlite3 + - ${APP_DATABASE_FILE}:/conf/db.sqlite3 #ports: # - "8000:8000" # uwsgi socket env_file: @@ -27,7 +27,7 @@ services: command: sh -c '. /venv/bin/activate && python manage.py migrate --noinput' volumes: - ${PORTAINER_GIT_DIR}:/code - - ${APP_DATABASE_FILE}:/code/db.sqlite3 + - ${APP_DATABASE_FILE}:/conf/db.sqlite3 env_file: - ../stack.env @@ -37,7 +37,7 @@ services: command: sh -c '. /venv/bin/activate && python manage.py collectstatic --noinput' volumes: - ${PORTAINER_GIT_DIR}:/code - - ${APP_DATABASE_FILE}:/code/db.sqlite3 + - ${APP_DATABASE_FILE}:/conf/db.sqlite3 env_file: - ../stack.env diff --git a/docker/nginx/conf.d/default.conf b/docker/nginx/conf.d/default.conf index 9633c7b..f3ef7d5 100644 --- a/docker/nginx/conf.d/default.conf +++ b/docker/nginx/conf.d/default.conf @@ -13,7 +13,6 @@ server { } location / { - include /etc/nginx/uwsgi_params; # the uwsgi_params file you installed proxy_pass http://django; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;