I have created a web application in asp core but I do not understand how to link my database to my container.
I read that I need to compose two container but I did not find how to do that and how apply my migrations
Does someone can help me?? thanks guys.
here my Dockerfile
FROM microsoft/dotnet:latest
COPY . /app
WORKDIR /app
RUN dotnet restore
RUN dotnet build
EXPOSE 5000/tcp
ENV ASPNETCORE_URLS http://*:5000
ENV ASPNETCORE_ENVIRONMENT docker
ENTRYPOINT dotnet run