Fix to no password error on database run

Environmental variables in docker-compose.yml needed to be duplicated from service:web to also service:db to fix password error
This commit is contained in:
michsarg 2021-12-01 14:43:01 +08:00 committed by GitHub
parent 2477a2a449
commit bc4f1023f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi
image: postgres
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
web:
build: .
command: python manage.py runserver 0.0.0.0:8000