December 2019
Intermediate to advanced
510 pages
11h 33m
English
Docker provides a lot of ways to specify the environment variables of a container. In the docker-compose.yml file specified earlier; we use the env_file approach. Furthermore, we can proceed by creating the api/api.env file in the corresponding path specified in the definition of the catalog_api container:
ASPNETCORE_URLS=http://*:5000;https://*:5001ASPNETCORE_ENVIRONMENT=Integration
The file syntax expects each line in the file to be in the following format: VAR=VAL. In the preceding case, we are defining the environment variables used by ASP.NET Core to run the service: the ASPNETCORE_URLS variable specifies the URLs used by the web service and ASPNETCORE_ENVIRONMENT specifies the environment name used by ...
Read now
Unlock full access