13👍
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
3👍
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"
- Where to instantiate boto s3 client so it is reused during a request?
- Does Django have BDD testing tools comparable to Rails' testing tools?
- Is exposing a session's CSRF-protection token safe?
0👍
A bit late for the party but if you are connecting to port 33060
change to port 3306
.
Took a whole hour to recognize it exposes two ports.
- Django custom command and cron
- Can't Create Super User Django
- How to read sql query to pandas dataframe / python / django
- Paypal monthly subscription plan settings for first day of the month and making monthly recurring payment – django python
- Saving a Pandas DataFrame to a Django Model
Source:stackexchange.com