Merge pull request #104 from Nebucatnetzer/dev

A sort of working setup
This commit is contained in:
Andreas Zweili 2022-12-12 10:11:16 +01:00 committed by GitHub
commit 56d61c7fa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View File

@ -180,3 +180,4 @@ htmlcov/
db_data
.direnv
/result
/static/

View File

@ -10,14 +10,14 @@ services:
- ./db_data:/var/lib/postgresql/data/
web:
image: ghcr.io/nebucatnetzer/network_inventory/network_inventory:master
# build: .
image: ghcr.io/nebucatnetzer/network_inventory/network-inventory
volumes:
- .:/code
- ./static/:/code/static
environment:
- DJANGO_SETTINGS_MODULE
- DJANGO_DEBUG
- DJANGO_SECRET_KEY
- "DJANGO_POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
depends_on:
- db

View File

@ -15,7 +15,7 @@ ALLOWED_HOSTS = [
]
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv("SECRET_KEY")
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
@ -26,6 +26,7 @@ DATABASES = {
"ENGINE": "django.db.backends.postgresql",
"NAME": "postgres",
"USER": "postgres",
"PASSWORD": os.environ.get("DJANGO_POSTGRES_PASSWORD"),
"HOST": "db",
"PORT": 5432,
}