diff --git a/compose/django/Dockerfile b/compose/django/Dockerfile index b3fa66f2..aa489641 100644 --- a/compose/django/Dockerfile +++ b/compose/django/Dockerfile @@ -104,4 +104,6 @@ RUN chown django:django ${APP_HOME} USER django +EXPOSE 7555 + ENTRYPOINT ["/entrypoint"] diff --git a/compose/django/sshd_config b/compose/django/sshd_config new file mode 100644 index 00000000..e69de29b diff --git a/docker-compose-pgbackup.yml b/docker-compose-pgbackup.yml new file mode 100644 index 00000000..2c265272 --- /dev/null +++ b/docker-compose-pgbackup.yml @@ -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 diff --git a/env/docker_local.env b/env/docker_local.env index 7919aebc..409e30f8 100644 --- a/env/docker_local.env +++ b/env/docker_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 diff --git a/env_secrets/pg_backup_local.env b/env_secrets/pg_backup_local.env new file mode 100644 index 00000000..ca8e7f15 Binary files /dev/null and b/env_secrets/pg_backup_local.env differ diff --git a/env_secrets/production_azure.env b/env_secrets/production_azure.env index 7169a777..46a22673 100644 Binary files a/env_secrets/production_azure.env and b/env_secrets/production_azure.env differ diff --git a/git-crypt-encrypted-files.txt b/git-crypt-encrypted-files.txt index 9136f91d..3d93968c 100644 --- a/git-crypt-encrypted-files.txt +++ b/git-crypt-encrypted-files.txt @@ -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 diff --git a/server/config/settings/base.py b/server/config/settings/base.py index 11b0c53d..7cfba7f1 100644 --- a/server/config/settings/base.py +++ b/server/config/settings/base.py @@ -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"] )