diff --git a/docker-compose.yml b/docker-compose.yml index eaa61a94..02737699 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,8 @@ services: db: image: postgres:12-alpine environment: - - POSTGRES_USER=${DB_USER:-objecttypes} - - POSTGRES_PASSWORD=${DB_PASSWORD:-objecttypes} + - POSTGRES_USER=objecttypes + - POSTGRES_PASSWORD=objecttypes command: postgres -c max_connections=300 -c log_min_messages=LOG redis: @@ -15,6 +15,8 @@ services: image: maykinmedia/objecttypes-api:latest build: . environment: &app-env + - DB_USER=objecttypes + - DB_PASSWORD=objecttypes - DJANGO_SETTINGS_MODULE=objecttypes.conf.docker - SECRET_KEY=${SECRET_KEY:-fgv=c0hz&tl*8*3m3893@m+1pstrvidc9e^5@fpspmg%cyf15d} - ALLOWED_HOSTS=*