2024-03-26 02:06:46 +02:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
|
|
|
container_name: mariadb-main
|
|
|
|
image: mariadb
|
|
|
|
restart: always
|
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
2024-03-26 12:51:58 +02:00
|
|
|
ports:
|
|
|
|
- 3306:3306
|
2024-03-26 02:06:46 +02:00
|
|
|
volumes:
|
|
|
|
- /mnt/data/mysql:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
|
|
|
- MARIADB_DATABASE=${MARIADB_DATABASE}
|
|
|
|
- MARIADB_USER=${MARIADB_USER}
|
|
|
|
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
|
|
|
|
|
|
|
|
adminer:
|
|
|
|
container_name: mariadb-adminer
|
|
|
|
image: adminer
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8082:8080
|