My Docker AppService is not receiving the environment variables set in App Settings.

Marco Montanari 10 Reputation points
2023-01-27T11:02:10.4466667+00:00

Hello,

I am running a public docker image as a Container App. Setting the invironment variables, they are not set in what is the log of the command run to start the application. Specifically I added all possible env variables, yet I always get the following log:

docker run -d --expose=8080 --name <container-name> -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=false -e WEBSITE_SITE_NAME=<website-name> -e WEBSITE_AUTH_ENABLED=False -e PORT=8080 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=<website-hostname> -e WEBSITE_INSTANCE_ID=<website-instance-id> -e WEBSITE_USE_DIAGNOSTIC_SERVER=False lightdash/lightdash:latest

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
325 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Lex Li (Microsoft) 5,157 Reputation points Microsoft Employee
    2023-04-02T05:29:16.54+00:00

    Where did you configure those environment variables within Azure Container Apps settings?

    If you follow the screen shot below to configure environment variables for your container, then within the running containers the variables are available.

    User's image

    1 person found this answer helpful.
    0 comments No comments