MariaDB
Posted
MariaDB server is a community developed fork of MySQL server.
# file: `docker-compose.yml`
services:
mariadb:
image: ${HONEYPI_IMAGE_REGISTRY_HOST:-docker.io}/mariadb:${HONEYPI_MARIADB_VERSION:-latest}
container_name: mariadb
restart: unless-stopped
stop_grace_period: 5s
security_opt:
- seccomp:unconfined
- apparmor:unconfined
command: --init-file /data/application/init.sql --innodb-buffer-pool-size=512M --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
ports:
- ${HONEYPI_MARIADB_PORT:-3306}:3306
volumes:
- ${HONEYPI_DATA}/mariadb/data:/var/lib/mysql
- ${HONEYPI_CONFIG}/mariadb/init.sql:/data/application/init.sql
environment:
- MARIADB_AUTO_UPGRADE=${HONEYPI_MARIADB_AUTO_UPGRADE:-1}
- MARIADB_INITDB_SKIP_TZINFO=${HONEYPI_MARIADB_INITDB_SKIP_TZINFO:-1}
- MARIADB_USER=${HONEYPI_MARIADB_USER:-admin}
- MARIADB_PASSWORD=${HONEYPI_MARIADB_PASSWORD}
- MARIADB_RANDOM_ROOT_PASSWORD=${HONEYPI_MARIADB_RANDOM_ROOT_PASSWORD:-1}
- MARIADB_DISABLE_UPGRADE_BACKUP=${HONEYPI_MARIADB_DISABLE_UPGRADE_BACKUP:-1}