I would like to deploy Redmine Docker image to Azure App Services and point it to the MySql instance deployed to Azure Database for MySQL servers. This would give me a fully managed architecture. I have created an instance of MySql and can connect to it from my local PC using MySql Workbench. Unfortunately the Redmine Docker image I am deploying to App Services fails to start. The log says: Docker on instance ******* experienced container start failures. The application log indicates there is an issue with Startup Command. After reviewing the container crash logs I have noticed that my startup command is appended to the docker run command:
docker run -d -p 6390:3000 --name redminetest_0_3d4d8283 -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=false -e WEBSITE_SITE_NAME=redminetest -e WEBSITE_AUTH_ENABLED=False -e PORT=3000 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=redminetest.azurewebsites.net -e WEBSITE_INSTANCE_ID=c0f955200062b837a8b06271f039c1d9a6aa1309ada101b0e47bf9c23c0ba3a3 redmine:latest --name MyRedmine -e REDMINE_DB_MYSQL=51.140.184.11 -e REDMINE_DB_PORT=3306 -e REDMINE_DB_USERNAME=special@mysqlredmine -e REDMINE_DB_PASSWORD=Sp3c1al! redmine
I can see straight away that --name argument and image name/tag was duplicated by my command. This is something I can correct but how can I append my environment variables before the image name/tag (redmine:latest) ?
UPDATE:
Please see the screenshot below. This demonstrates the issue. My environment variables were appended after the image name.