Exercise 5: Creating and Managing ACA
The best way to get to grips with ACA is to get practical experience and try it out. In this exercise, you will create two apps: a front-end web app and a back-end API. Only the front end should be accessible to the public and the backend should only be accessible from within the environment.
Task 1: Building and Running Multiple Containers Locally
Follow these steps to get experience with running multiple containers simultaneously locally using docker-compose, before deploying and running the containers in ACA:
- From the previously cloned repository for this book, open the
Chapter03\02-azure-container-appsdirectory within VS Code.The
demoapiproject uses the defaultwebapi.NET template to display some mock weather forecast information. Thedemoappproject just makes a GET request to a URL and displays the output. The URL uses theAPI_URLsetting, which can be found inappsettings.json. - Open a terminal session from the
demoapi...