Skip to content

A Todo application using DDD, DotNet Core, Docker, Docker-Compose and E2E testing

Notifications You must be signed in to change notification settings

rabadiw/demo-todo-e2e

Repository files navigation

Enable TLS in Docker

# cmd to generate a development certificate
dotnet dev-certs https --trust
# cmd to export a cert with password for use within Docker container
dotnet dev-certs https -v -ep <path/to/localhost.pfx> -p <password to use>

Once the cert was created, add the following environment variables to your docker-compose.yml file.

# example
services:
  app:
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - ASPNETCORE_URLS=https://+:443;http://+:80
      - ASPNETCORE_HTTPS_PORT=44365
      - Kestrel__Certificates__Default__PASSWORD=apples
      - Kestrel__Certificates__Default__PATH=/root/.aspnet/https/localhost.pfx
    ports:
      - "49167:80"
      - "44365:443"
    volumes:
      - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
      - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro

About

A Todo application using DDD, DotNet Core, Docker, Docker-Compose and E2E testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published