Added ENV Vars for the DB Connection to the Docker part

This commit is contained in:
Niggl1999 2020-06-04 09:53:10 +02:00
parent f87585c224
commit 9ba9692f05
2 changed files with 13 additions and 0 deletions

View File

@ -10,4 +10,12 @@ RUN dotnet publish -c Release -o /app
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS final
WORKDIR /app
COPY --from=build /app .
## Intruduce all the ENV vars
ENV DATABASE_HOST null
ENV DATABASE_PORT 5432
ENV DATABASE_NAME null
ENV DATABASE_USER null
ENV DATABASE_PASSWORD null
ENTRYPOINT ["dotnet", "ScrumTaskboard.dll"]

View File

@ -22,6 +22,11 @@ services:
- default
ports:
- "5001:80"
environment:
DATABASE_HOST: db
DATABASE_NAME: taskboard
DATABASE_USER: scrum
DATABASE_PASSWORD: c6gXud7YvBWp2sgxSgy4wRN
volumes:
db-data: