Run ASP.NET Core 3.1 Apps in Docker with HTTPS.

Les Jackson August 4, 2020
Video Thumbnail
Les Jackson Logo

Les Jackson

View Channel

About

I aim to provide high-quality educational .NET content, specializing in APIs and backend development.

Video Description

In this step by step tutorial I take you through how to package your ASP.NET Core app as a Docker Image and then run your image as a Docker container with HTTPS Enabled. This includes creating a dedicated self-signed development certificate, configuring user secrets and passing in the necessary environment variables to the container to enable HTTPS. We further configure this with Docker Compose for ease of use and reuse going forward. Level: Beginner / Intermediate 📕 My Book: https://www.apress.com/gp/book/9781484262542 😍 Patreon Site (Exclusive Member Benefits!): https://www.patreon.com/binarythistle 💻 Code on GitHub: https://github.com/binarythistle/S03E05---Docker-HTTPS-and-ASPNET-Core 🔗 Install Docker Desktop Via WSL: https://docs.docker.com/docker-for-windows/install-windows-home/ 🔗 Docker Net Core Set Up: https://docs.docker.com/engine/examples/dotnetcore/ 🔗 HTTPS & Docker Microsoft Doc: https://github.com/dotnet/dotnet-docker/blob/master/samples/run-aspnetcore-https-development.md ⏲️-Time Codes-⏲️ 1:33 - Course Outline 3:13 - Demo 6:13 - Overview of Docker 10:23 - Scaffold Up API 18:40 - Build Docker Image 24:48 - Run Our Inage (without HTTPS) 27:39 - Some Container housekeeping 31:32 - Generate Dev Certifcate for Container 35:15 - Configuring User Secrets 42:12 - Rebuild our image (with User Secrets) 43:32 - Overview of Docker Run parameters 48:26 - Run our Container with HTTPS (Docker CLI) 49:40 - Migrate and Run in Docker Compose 56:40 - Certificate file name case sensitivity 58:20 - Final Thoughts 58:52 - Patreon Supporter Credits

You May Also Like

Boost Your .NET Dev Setup

AI-recommended products based on this video

Loading...
MT7601 USB Adapter USB Antenna, Computer Adapter USB Adapter with Integrated Antenna for Windows Desktop Laptop

MT7601 USB Adapter USB Antenna, Computer Adapter USB Adapter with Integrated Antenna for Windows Desktop Laptop

(11)
$11.02
FREE delivery Sun, Jun 22 on your first order
Loading...
TP-Link USB Bluetooth Adapter for PC, 4.0 Bluetooth Dongle Receiver (UB400) - Support Windows 11/10/8.1/8/7/XP for Desktop, Laptop, Mouse, Keyboard, Printers, Headsets, Speakers, PS4/ Xbox Controllers

TP-Link USB Bluetooth Adapter for PC, 4.0 Bluetooth Dongle Receiver (UB400) - Support Windows 11/10/8.1/8/7/XP for Desktop, Laptop, Mouse, Keyboard, Printers, Headsets, Speakers, PS4/ Xbox Controllers

(56,618)
$9.99$8.14
FREE delivery Sun, Jun 22 on your first order
500+ bought in past month
Loading...
10Gtek USB WiFi Adapter, for PC, AC600M USB WiFi Dongle 802.11ac Wireless Network Adapter with Dual Band 2.4GHz/5Ghz for Desktop Laptop Support Windows 10/8/7/XP, MAC OS, Linux etc

10Gtek USB WiFi Adapter, for PC, AC600M USB WiFi Dongle 802.11ac Wireless Network Adapter with Dual Band 2.4GHz/5Ghz for Desktop Laptop Support Windows 10/8/7/XP, MAC OS, Linux etc

(11)
$14.95
FREE delivery Sun, Jun 22 on your first order
Loading...
BrosTrend 1200Mbps USB WiFi Adapter for Windows 11/10/8/7/XP of PC Desktop Laptop, Dual Band 5GHz 867Mbps, 2.4GHz 300Mbps, USB 3.0, Network Card WLAN

BrosTrend 1200Mbps USB WiFi Adapter for Windows 11/10/8/7/XP of PC Desktop Laptop, Dual Band 5GHz 867Mbps, 2.4GHz 300Mbps, USB 3.0, Network Card WLAN

(3,063)
$29.99
FREE delivery Sun, Jun 22 on your first order
Loading...
Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

(181)
$70.15$61.13
$5.05 delivery Thu, Jun 26Only 3 left in stock.
Loading...
9-in-1 5000A 150PSI Car Battery Booster Jump Starter with Air Compressor (All Gas/9L Diesel), Portable Car Battery Booster Pack, Safe Durable Car Jump Starter with Extended Jumper Cables, Glove, Light

9-in-1 5000A 150PSI Car Battery Booster Jump Starter with Air Compressor (All Gas/9L Diesel), Portable Car Battery Booster Pack, Safe Durable Car Jump Starter with Extended Jumper Cables, Glove, Light

(261)
$99.99
FREE delivery Sat, Sep 20
1K+ bought in past month
Loading...
JUNEBOX 4K Portable Monitor 15.6" 3840 * 2160 HDR Display, 500nits 8bit QHD USB-C HDMI Laptop Monitor, 16:9 IPS Eye Care External Second Screen for Mac PC Phone PS4/5 Xbox Switch

JUNEBOX 4K Portable Monitor 15.6" 3840 * 2160 HDR Display, 500nits 8bit QHD USB-C HDMI Laptop Monitor, 16:9 IPS Eye Care External Second Screen for Mac PC Phone PS4/5 Xbox Switch

(2)
$269.00
FREE delivery Tue, Aug 12
Loading...
Jhcztrk 17.3 Inch Portable Monitor HDMI Type-C Laptop Gaming Monitor, 1600X900 with Built-in Speakers and Tripod External Slim Travel Monitors Second Monitors for Mac Smartphone PS4/PS5/ Gaming

Jhcztrk 17.3 Inch Portable Monitor HDMI Type-C Laptop Gaming Monitor, 1600X900 with Built-in Speakers and Tripod External Slim Travel Monitors Second Monitors for Mac Smartphone PS4/PS5/ Gaming

(32)
$161.69$161.68
FREE delivery Aug 11 - 13
Loading...
JUNEBOX Portable Monitor 18.5" 1080p Display, 500nits 8bit QHD USB-C HDMI Laptop Monitor, 16:9 IPS Eye Care External Second Screen for Mac PC Phone PS4/5 Xbox Switch (18.5'' 1920 * 1080 100HZ)

JUNEBOX Portable Monitor 18.5" 1080p Display, 500nits 8bit QHD USB-C HDMI Laptop Monitor, 16:9 IPS Eye Care External Second Screen for Mac PC Phone PS4/5 Xbox Switch (18.5'' 1920 * 1080 100HZ)

(0)
$180.49
FREE delivery Mon, Aug 11
Loading...
18.5 inch Portable Monitor, InnoView 100HZ 120% sRGB 1080P FHD IPS Large Portable Monitor for Laptop USB C HDMI HDR Gaming Monitor with Kickstand Travel Monitor for Mac PC Xbox PS4/5 Switch

18.5 inch Portable Monitor, InnoView 100HZ 120% sRGB 1080P FHD IPS Large Portable Monitor for Laptop USB C HDMI HDR Gaming Monitor with Kickstand Travel Monitor for Mac PC Xbox PS4/5 Switch

(2,007)
$239.99
FREE delivery Wed, Aug 13
50+ bought in past month