fix issue, dockerfile was using a cached image
Some checks failed
Gitea build & run. / docker (push) Failing after 3s

This commit is contained in:
vps - Wouter
2026-03-08 11:47:41 +00:00
parent 6511120965
commit c9eb6d52be
3 changed files with 9 additions and 4 deletions

3
Makefile Normal file
View File

@@ -0,0 +1,3 @@
dev:
docker compose down
docker compose up --build

View File

@@ -1,6 +1,7 @@
services:
web:
build: .
command: gunicorn --proxy-protocol auto --proxy-allow-from 10.10.50.11 website.wsgi:application
depends_on:
- db
ports:
@@ -9,8 +10,7 @@ services:
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS_MODULE}
env_file:
.env
env_file: ".env"
restart: unless-stopped
db:
@@ -21,6 +21,7 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql
env_file: ".env"
restart: unless-stopped
adminer:

View File

@@ -24,10 +24,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "django-insecure-c$q7wdq+u@ow74wp!&zzkxdylkueu)(+34e%!e0du&bjwoqz9z"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv("DEBUG")
DEBUG = bool(os.getenv("DEBUG"))
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS")
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS").split(",")
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
# Application definition