add postgres password

otherwise the system won't run
This commit is contained in:
Andreas Zweili 2020-02-15 00:55:45 +01:00
parent 55ba1f0375
commit 3a9b5cfbde
2 changed files with 4 additions and 3 deletions

View File

@ -5,8 +5,9 @@ services:
image: postgres
environment:
- POSTGRES_DB=network_inventory
- POSTGRES_PASSWORD=password
volumes:
- ./db_data:/var/lib/postgresql/data/
- ./db_data:/var/lib/postgresql/data
web:
build: .
@ -14,7 +15,7 @@ services:
volumes:
- .:/code
ports:
- "8000:8000"
- 8000:8000
environment:
- DJANGO_SETTINGS_MODULE=network_inventory.settings.docker
- DJANGO_DEBUG=True

View File

@ -18,6 +18,6 @@ DATABASES = {
'USER': 'postgres',
'HOST': 'db',
'PORT': 5432,
'PASSWORD': 'password',
}
}