Add additional Env variables

This commit is contained in:
Lorenz Padberg 2023-05-17 15:51:50 +02:00 committed by Daniel Egger
parent 64d4762953
commit d0f48866f5
8 changed files with 21 additions and 2 deletions

View File

@ -104,4 +104,6 @@ RUN chown django:django ${APP_HOME}
USER django
EXPOSE 7555
ENTRYPOINT ["/entrypoint"]

View File

View File

@ -0,0 +1,10 @@
version: '3'
services:
postgres-backup:
image: kartoza/pg-backup:14-3.3
container_name: postgres-backup
volumes:
- ./local_backups:/backups
env_file:
- ./env_secrets/pg_backup_local.env

View File

@ -3,10 +3,11 @@
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=vbv_lernwelt
POSTGRES_USER=MRsLOrFLFqmAnAxxWMsHXfUSqWHThtGQ
POSTGRES_USER=postgres
POSTGRES_PASSWORD=hNqfCdG6bwCLcnfboDtNM1L2Hiwp8GuKp1DJ6t2rcKl15Vls2QbByoIZ6IQlciKM
# General
# ------------------------------------------------------------------------------
IT_DJANGO_LOCAL_DOCKER=True
IPYTHONDIR=/app/.ipython
IT_APP_ENVIRONMENT=local

Binary file not shown.

Binary file not shown.

View File

@ -6,3 +6,4 @@
encrypted: env_secrets/local_elia.env
encrypted: env_secrets/local_lorenz.env
encrypted: env_secrets/production.env
encrypted: env_secrets/production_azure.env

View File

@ -507,7 +507,12 @@ else:
SECRET_KEY = env("IT_DJANGO_SECRET_KEY")
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = env.list(
ALLOWED_HOSTS = ['*']
print("*"*100)
print(ALLOWED_HOSTS)
print("*"*100)
env.list(
"IT_DJANGO_ALLOWED_HOSTS", default=["localhost", "0.0.0.0", "127.0.0.1"]
)