docker-compose/mariadb/docker-compose.yml

24 lines
544 B
YAML
Raw Normal View History

2022-12-24 03:38:43 +02:00
version: '3.1'
services:
db:
container_name: mariadb-main
2022-12-24 03:38:43 +02:00
image: mariadb
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- /mnt/data/mysql:/var/lib/mysql
2022-12-24 03:38:43 +02:00
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_DATABASE=${MARIADB_DATABASE}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
adminer:
container_name: mariadb-adminer
2022-12-24 03:38:43 +02:00
image: adminer
restart: always
ports:
2023-03-12 15:37:59 +02:00
- 8082:8080