you can connect to mysql container from python3-alpine container if you follow bellow steps.
and if you want to connect to mysql container from Host then mysql -u root or dbuser -p 33306
.
- docker-compose build
- docker-compose up -d
- docker-compose exec app /bin/ash
- mysql -h db -u root -p -P 3306
pass
enter