commit
56d61c7fa9
|
@ -180,3 +180,4 @@ htmlcov/
|
||||||
db_data
|
db_data
|
||||||
.direnv
|
.direnv
|
||||||
/result
|
/result
|
||||||
|
/static/
|
||||||
|
|
|
@ -10,14 +10,14 @@ services:
|
||||||
- ./db_data:/var/lib/postgresql/data/
|
- ./db_data:/var/lib/postgresql/data/
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: ghcr.io/nebucatnetzer/network_inventory/network_inventory:master
|
image: ghcr.io/nebucatnetzer/network_inventory/network-inventory
|
||||||
# build: .
|
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- ./static/:/code/static
|
||||||
environment:
|
environment:
|
||||||
- DJANGO_SETTINGS_MODULE
|
- DJANGO_SETTINGS_MODULE
|
||||||
- DJANGO_DEBUG
|
- DJANGO_DEBUG
|
||||||
- DJANGO_SECRET_KEY
|
- DJANGO_SECRET_KEY
|
||||||
|
- "DJANGO_POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ ALLOWED_HOSTS = [
|
||||||
]
|
]
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# 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!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = False
|
DEBUG = False
|
||||||
|
@ -26,6 +26,7 @@ DATABASES = {
|
||||||
"ENGINE": "django.db.backends.postgresql",
|
"ENGINE": "django.db.backends.postgresql",
|
||||||
"NAME": "postgres",
|
"NAME": "postgres",
|
||||||
"USER": "postgres",
|
"USER": "postgres",
|
||||||
|
"PASSWORD": os.environ.get("DJANGO_POSTGRES_PASSWORD"),
|
||||||
"HOST": "db",
|
"HOST": "db",
|
||||||
"PORT": 5432,
|
"PORT": 5432,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue