mariadb/compose.yaml
Arnaud G. GIBERT ade02c14a9 - Initial release,
- Based on server-mga9:1.1.1 image.
2024-08-27 23:32:27 +02:00

41 lines
1008 B
YAML

# 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}
volumes:
- ./mysql:/var/lib/mysql
network_mode: bridge
ports:
- "127.0.0.1:9012:9001"
- "127.0.0.1:8006:3306"