Skip to content
Snippets Groups Projects
Commit 09c0dbe7 authored by James Smith's avatar James Smith
Browse files

fixed bug with authentication for default postgres user, cleaned up duplicate...

fixed bug with authentication for default postgres user, cleaned up duplicate .env files. refactored code within docker-compose to be more consistent within itself
parent 6a54b54e
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ DEBUG=True
#postgres
POSTGRES_DB=placeholder
POSTGRES_DB=mlaas
POSTGRES_NAME=mlaas
POSTGRES_USER=user
POSTGRES_PASSWORD=password
......
POSTGRES_NAME=mlaas
POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_HOST=db
POSTGRES_PORT=5432
\ No newline at end of file
......@@ -52,9 +52,9 @@ services:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: root_password
POSTGRES_DB: mlaas
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_NAME}
ports:
- "5432:5432"
web:
......@@ -72,7 +72,6 @@ services:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "8000:8000"
#legacy env file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment