34 lines
681 B
YAML
34 lines
681 B
YAML
version: '3.1'
|
|
|
|
volumes:
|
|
|
|
data:
|
|
driver_opts:
|
|
type: "nfs"
|
|
o: "addr=192.168.1.245,nolock,soft,rw"
|
|
device: ":/mnt/data/mysql"
|
|
|
|
services:
|
|
|
|
db:
|
|
image: mariadb
|
|
restart: always
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
volumes:
|
|
- type: volume
|
|
source: data
|
|
target: /var/lib/mysql
|
|
volume:
|
|
nocopy: false
|
|
environment:
|
|
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
|
- MARIADB_DATABASE=${MARIADB_DATABASE}
|
|
- MARIADB_USER=${MARIADB_USER}
|
|
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
|
|
|
|
adminer:
|
|
image: adminer
|
|
restart: always
|
|
ports:
|
|
- 8081:8080
|