azurecontainersazure-web-app-for-containers

Secret volume available for Azure app service for containers?


Can I use secret volume for a container deployed to Azure app service on containers?


Solution

  • Actually, you can't. Azure Web App doe not have the property to input the secrets in the secret volumes. But you can see that the secret volume just a mount point with the tmpfs driver type and Azure then put the secrets inside it.

    So if you do not mind, you can use the volumes property to set the driver type with tmpfs and then mount it in the container, then put the secrets inside it yourself. Take a look at the driver_opts in the docker-compose and here is an example:

    volumes:
      example:
        driver_opts:
          type: "tmpfs"