docker-compose/mariadb1010.yml
version: '3.7'
services:
app:
build:
target: with-mysql-client
depends_on:
- mariadb1010
entrypoint: docker-compose/wait-for-mysql.sh mariadb1010
restart: always
environment:
MYSQL_USER: root
MYSQL_PASSWORD: root_password
mariadb1010:
image: mariadb:10.10
restart: always
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: mydb