# Rx3-Docker/MariaDB Docker Image #------------------------------------------------------------------------------- name: ${DATABASE_IMG_NAME} services: database: container_name: ${DATABASE_HOST_NAME} hostname: ${DATABASE_HOST_NAME} image: ${DATABASE_IMG_URL} build: context: . args: IMG_NAME: ${DATABASE_IMG_NAME} IMG_NAME_FULL: ${DATABASE_IMG_NAME_FULL} IMG_VERSION: ${DATABASE_IMG_VERSION} IMG_MAINTAINER: ${DATABASE_IMG_MAINTAINER} IMG_FROM_URL: ${DATABASE_IMG_FROM_URL} MARIADDB_LIB: ${DATABASE_LIB_INT} MARIADDB_LOG: ${DATABASE_LOG_MAIN_INT} MARIADDB_PORT: ${DATABASE_PORT_MAIN_INT} POSTSQL_LOG: ${DATABASE_LOG_POST_INT} restart: unless-stopped environment: MARIADB_UID: ${DATABASE_USER_ID} MARIADB_GID: ${DATABASE_GROUP_ID} MARIADB_ROOT_HOST: ${MARIADB_ROOT_HOST} MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD} MARIADB_DATABASE: ${MARIADB_DATABASE} MARIADB_USER: ${MARIADB_USER} MARIADB_PASSWORD: ${MARIADB_PASSWORD} healthcheck: test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p${MARIADB_ROOT_PASSWORD}' ] interval: 10s timeout: 3s retries: 3 volumes: - ./${DATABASE_LIB_EXT}:${DATABASE_LIB_INT} - ./${DATABASE_LOG_INIT_EXT}:${DATABASE_LOG_INIT_INT} - ./${DATABASE_LOG_SV_EXT}:${DATABASE_LOG_SV_INT} - ./${DATABASE_LOG_MAIN_EXT}:${DATABASE_LOG_MAIN_INT} ports: - "127.0.0.1:${DATABASE_PORT_SV_EXT}:${DATABASE_PORT_SV_INT}" - "127.0.0.1:${DATABASE_PORT_MAIN_EXT}:${DATABASE_PORT_MAIN_INT}"