Image not working with Azure storage mount
xcellenceit opened this issue · 2 comments
xcellenceit commented
Getting error when I running it as Azure App for Container. I have enabled the WEBSITES_ENABLE_APP_SERVICE_STORAGE, and configured azure storage mount with file share in docker as described here MicrosoftDocs/azure-docs#55046
2023-07-15T07:20:25.335Z INFO - docker run -d -p 9560:80 --name myhost_mautic_0_3cb64f5a -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=true -e WEBSITE_SITE_NAME=myhost -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=hostname.azurewebsites.net -e WEBSITE_INSTANCE_ID=7e65b7bfda61c0327cd6b05b68172e68b22e90752de61b8d5f6484746acfcd5d -e HTTP_LOGGING_ENABLED=1 -e WEBSITE_USE_DIAGNOSTIC_SERVER=False mautic/mautic:v4-apache
2023-07-15T07:24:16.260Z ERROR - multi-container unit was not started successfully
2023-07-15T07:24:16.261Z INFO - Container logs from myhost_mautic_0_3cb64f5a = 2023-07-15T07:20:25.831636447Z Mautic not found in /var/www/html - copying now...
2023-07-15T07:24:21.707Z INFO - Stopping site myhost because it failed during startup.
2023-07-15T07:30:33.880Z INFO - Starting multi-container app..
I see the files are copied to azure file storage but still getting this error.
Here is my docker-compose I added to the azure app for container.
version: "3"
services:
mautic:
image: mautic/mautic:v4-apache
volumes:
- mouticdatamount:/var/www/html
environment:
- MAUTIC_DB_HOST=mydb.mysql.database.azure.com
- MAUTIC_DB_USER=mydbuser
- MAUTIC_DB_PASSWORD=mydbpassword
- MAUTIC_DB_NAME=mydbname
restart: always
umeshnb commented
Yes, even Im having same issue
umeshnb commented
@xcellenceit I know in azure, there is limitation, that Azure storage does not work with docker compose or
multi-container.