I'm trying to deploy a docker-compose file in Azure, my compose file looks like the below.
version: '3'
services:
db:
image: mysql:latest
restart: unless-stopped
volumes:
- misp-mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=*****
- MYSQL_USER=*****
- MYSQL_PASSWORD=********
- MYSQL_ROOT_PASSWORD=********
web:
image: *****
restart: unless-stopped
ports:
- "80:80"
volumes:
- misp-web:/var/www/MISP
environment:
- MYSQL_HOST=db
- MYSQL_DATABASE=****
- MYSQL_USER=*****
- MYSQL_PASSWORD=************
When I deploy this to Azure, both containers start and run, as well as a third container 'aci--dns--sidecar', which I assume is for DNS resolution. However, from within the web container, it's impossible to resolve the DB container for me.
Any suggestion?