Problem deploying a multi-container app to App Services
Hi there,
I'm trying to deploy a multi-container app to Azure App services, however I'm running into problems.
This docker-compose file, which pulls the image from the container registry, works fine on my local machine:
version: "3.3"
services:
api:
container_name: api-container
image: xxx.azurecr.io/xxx:latest
command: uwsgi --ini /code/projectile/uwsgi.ini
volumes:
- .:/code
nginx:
container_name: nginx_container
image: xxx.azurecr.io/xxx:latest
ports:
- 80:80
volumes:
- .:/code
However, when I try to get it to work on a multi-container app in Azure, the server don't start - and don't even give any sensible error messages. I've activated the local storage for the app, so it should work, however, I'm a bit uncertain if I'm doing the volumes part correctly.
version: "3.3"
services:
api:
container_name: api-container
image: xxx.azurecr.io/xxx:latest
command: uwsgi --ini /code/projectile/uwsgi.ini
volumes:
- ${WEBAPP_STORAGE_HOME}:/code
nginx:
container_name: nginx_container
image: xxx.azurecr.io/xxx:latest
ports:
- 80:80
volumes:
- ${WEBAPP_STORAGE_HOME}:/code
The only logs I get (and I have activate Application logs) are multiple entries of:
2021-12-06T01:36:56.286Z INFO - Stopping site xxx because it failed during startup.
Any idea what could be wrong?