blob: 15c0e69a097145677fcad397e9489aa3cd54517d [file] [log] [blame]
services:
ranger-db:
build:
context: .
dockerfile: Dockerfile.ranger-mysql
args:
- MARIADB_VERSION=${MARIADB_VERSION}
image: ranger-mysql
command: --default-authentication-plugin=mysql_native_password
container_name: ranger-mysql
hostname: ranger-db.example.com
networks:
- ranger
healthcheck:
# Double dollar($$) is required to expand the env variable
test: "mysql -u root -p$$MYSQL_ROOT_PASSWORD ranger -e 'select 1' > /dev/null"
interval: 10s
timeout: 2s
retries: 30
networks:
ranger:
name: rangernw