Add additional Env variables
This commit is contained in:
parent
64d4762953
commit
d0f48866f5
|
|
@ -104,4 +104,6 @@ RUN chown django:django ${APP_HOME}
|
|||
|
||||
USER django
|
||||
|
||||
EXPOSE 7555
|
||||
|
||||
ENTRYPOINT ["/entrypoint"]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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.
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue