fix issue, dockerfile was using a cached image
Some checks failed
Gitea build & run. / docker (push) Failing after 3s
Some checks failed
Gitea build & run. / docker (push) Failing after 3s
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user