Skip to content

Commit

Permalink
updated docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
snithyanantham committed Jul 16, 2020
1 parent c5203e2 commit 9b2ae26
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Services/Core/MyFamilyManager.API/Dockerfile.heroku
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
WORKDIR /app
#EXPOSE 80
ENV DefaultConnection localdb
ENV ASPNETCORE_ENVIRONMENT local

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
WORKDIR /src
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
WORKDIR /app
ENV DefaultConnection localdb
ENV ASPNETCORE_ENVIRONMENT local

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
WORKDIR /src
Expand Down
7 changes: 7 additions & 0 deletions src/docker-compose.heroku.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,27 @@ services:
myfamilymanager-api:
image: myfamilymanager-api
container_name: myfamilymanager-api
environment:
ASPNETCORE_ENVIRONMENT: Production
DefaultConnection: ${{ secrets.HEROKU_DB_CONNECTION }}
build:
context: .
dockerfile: Services/Core/MyFamilyManager.API/Dockerfile.heroku

myfamilymanager-identity:
image: myfamilymanager-identity
container_name: myfamilymanager-identity
environment:
ASPNETCORE_ENVIRONMENT: Production
build:
context: .
dockerfile: Services/Identity/MyFamilyManager.Identity.API/Dockerfile.heroku

myfamilymanager-web:
image: myfamilymanager-web
container_name: myfamilymanager-web
environment:
ASPNETCORE_ENVIRONMENT: Production
build:
context: .
dockerfile: Web/MyFamilyManager.Web/Dockerfile.heroku

0 comments on commit 9b2ae26

Please sign in to comment.