Deploy django application with docker-compose (mysql running on host machine)

preview_player
Показать описание
Scenario: django and nginx running in docker container, mysql running on host machine

You can run mysql in a docker container but in some scenarios, mysql may run as a standalone service on a host machine or on a cloud (for example: AWS RDS). In that case, application running inside a docker should be able to connect to mysql running outside the docker.

Рекомендации по теме
Комментарии
Автор

Great tutorial bro... You made my day.. Cheers

rahulnetawat