mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
27 lines
736 B
YAML
27 lines
736 B
YAML
services:
|
|
mariadb:
|
|
image: ${MARIADB_IMAGE:-mariadb:latest}
|
|
restart: ${MARIADB_RESTART:-unless-stopped}
|
|
volumes:
|
|
- ${VOL_PATH:-/data}/mariadb:/var/lib/mysql
|
|
environment:
|
|
- MARIADB_DATABASE=${MARIADB_DATABASE:-mydb}
|
|
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:-ChangeThisPassword}
|
|
- MARIADB_USER=${MARIADB_USER:-dbuser}
|
|
- MARIADB_PASSWORD=${MARIADB_PASSWORD:-AlsoChangeThisPassword}
|
|
ports:
|
|
- "${MARIADB_PORT:-3306}:3306"
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
command: >
|
|
--transaction-isolation=READ-COMMITTED
|
|
--binlog-format=ROW
|
|
--innodb-file-per-table=1
|
|
--skip-innodb-read-only-compressed
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|