2024-08-27 23:32:27 +02:00
|
|
|
# Rx3 MariaDB Mageia-9 Docker Image
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
name: ${IMG_NAME}
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
database:
|
|
|
|
container_name: ${IMG_NAME}
|
|
|
|
|
|
|
|
image: ${IMG_URL}
|
|
|
|
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
- IMG_NAME=${IMG_NAME}
|
|
|
|
- IMG_FULL_NAME=${IMG_FULL_NAME}
|
|
|
|
- IMG_VERSION=${IMG_VERSION}
|
|
|
|
- IMG_MAINTAINER=${IMG_MAINTAINER}
|
|
|
|
- IMG_URL_PREFIX=${IMG_URL_PREFIX}
|
|
|
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
environment:
|
|
|
|
MARIADB_UID: ${MARIADB_UID}
|
|
|
|
MARIADB_GID: ${MARIADB_GID}
|
|
|
|
MARIADB_ROOT_HOST: ${MARIADB_ROOT_HOST}
|
|
|
|
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
|
|
|
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
|
|
|
MARIADB_USER: ${MARIADB_USER}
|
|
|
|
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
|
|
|
|
2024-10-29 09:10:02 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p${MARIADB_ROOT_PASSWORD}' ]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 3
|
|
|
|
|
2024-08-27 23:32:27 +02:00
|
|
|
volumes:
|
2024-10-05 18:04:31 +02:00
|
|
|
- ./var/lib/mysql:/var/lib/mysql
|
2024-08-27 23:32:27 +02:00
|
|
|
|
|
|
|
network_mode: bridge
|
|
|
|
|
|
|
|
ports:
|
2024-10-05 18:04:31 +02:00
|
|
|
- "127.0.0.1:${DATABASE_SV_PORT}:9001"
|
|
|
|
- "127.0.0.1:${DATABASE_PORT}:3306"
|