Deploying Custom Docker Image to Azure - Environment Variables and Managing Changes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tarepsh
    Junior Member
    • Jun 2024
    • 1

    Deploying Custom Docker Image to Azure - Environment Variables and Managing Changes

    I am currently facing an issue with deploying a custom Docker image to our Azure server. Here’s a brief overview of the problem:
    1. Environment Variables: I need to pass environment variables such as the database host, username, and password to our custom Docker image. Specifically, these variables need to be accessible in /var/www/data/configi-intinrel.php. I am unsure of the best way to do this and would appreciate guidance on the correct approach.
    2. Custom Changes and Volume Mounting: The way changes are currently managed for the EspoCRM instance involves updating the entire www folder. I am exploring if there is a more efficient method to make and manage these changes. Additionally, I would like to know if it is possible to mount a volume to preserve these changes without having to overwrite the whole directory each time.

    Could someone please assist me with the following:
    • How to properly pass environment variables to the custom Docker image?
    • Recommendations for managing changes to the EspoCRM www folder, potentially using Docker volumes or other methods?

    Thank you in advance for your help. Looking forward to your suggestions and solutions.
Working...