Added mariadb to thinkcentre
This commit is contained in:
parent
90e95f25d6
commit
76a7ef8642
1 changed files with 23 additions and 0 deletions
23
thinkcentre/mariadb/docker-compose.yml
Normal file
23
thinkcentre/mariadb/docker-compose.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
version: '3.1'
|
||||
|
||||
services:
|
||||
|
||||
db:
|
||||
container_name: mariadb-main
|
||||
image: mariadb
|
||||
restart: always
|
||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||
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
|
Loading…
Reference in a new issue