This has already been asked, but none of the answers have helped me. This is my configuration. Im running docker-compose with two services, a web app in django and the datab
your WEB
containers starts before the DB is up and running , you need to wait for it using one of these methods or starting your DB first manually with docker-compose up db
Make sure that your db docker image is running fine. Check the logs of the running db container. I am able to use MariaDB successfully in my docker-compose file :
db:
image: mariadb
ports:
- 3306:3306
environment:
MYSQL_USER: "****"
MYSQL_PASSWORD: "****"
MYSQL_DATABASE: "*****"
MYSQL_RANDOM_ROOT_PASSWORD: "yes"