Building a Simple App with PostgreSQL, ASP.NET Core and EF Core in Docker Build the image:
- $ docker build -f dockerfile -t postgre-dotnetcore .
- $ docker run -d --name my-postgres -e POSTGRES_PASSWORD=password postgres
- $ docker run -d -p 5000:5000 --link my-postgres:postgres postgre-dotnetcore