docker-compose Error… [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.36-1debian10 started

docker-compose.yml version: "3.7" services: db: platform: linux/x86_64 image: mysql:5.7 volumes: – ./db_data1:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}" MYSQL_DATABASE: "${DB_DATABASE}" MYSQL_USER: "${DB_USER}" MYSQL_PASSWORD: "${DB_ROOT_PASSWORD}" ports: – 3306:3306 command: – –character-set-server=utf8mb4 – –collation-server=utf8mb4_unicode_ci web: build: dockerfile: ./Dockerfile command: python3 runserver volumes: – ./web_data1:/app ports: – 8000:8000 environment: DJANGO_DB_HOST: db:3306 DJANGO_DB_NAME: "${DB_DATABASE}" DJANGO_DB_USER: "${DB_USER}" DJANGO_DB_PASSWORD: "${DB_ROOT_PASSWORD}" DATABASES … Read more

Gradle task to create docker mysql container and fill it with databases and empty tables

Basically the title, is there any good approaches i should look into? Currently i have an idea that gradle task will run docker compose file that creates mysql container and then something like liquibase that creates database and fills it with empty tables , but i’m having troubles finding how to make it real and if this is even possible, and maybe there are other better solutions.

How to make a service wait for another to be ready?

I am using flyway with a mysql db. I am using them as services in a docker-compose and then using this in testcontainer‘s DockerComposeEnvironment. The problem is that even though I have added the depends_on key in ‘flyway’ service for the MySQL ‘db’, testcontainer starts flyway first and this results in the migrations not being applied.

How can I use local mysql data in a mysql container created through docker-compose

My company has been working with local setups of our mysql database for years. We have recently decided to adopting a containerized approach to local development, and we want to add the database into being run in a container. The issue is, because all of our data is already set up locally, we want to be able to just use the same data in the mysql container. I have tried using volumes to mount the directory storing all the mysql data into the container to no avail. Has anyone had success with doing this?