Add mariadb to dev setup

This commit is contained in:
Einar Forselv 2019-12-02 21:31:35 +01:00
parent 70ba9ed2ac
commit 123f863b51
1 changed files with 14 additions and 1 deletions

View File

@ -23,11 +23,11 @@ services:
environment:
- SOME_VALUE=test
- ANOTHER_VALUE=1
mysql:
image: mysql:5
labels:
restic-volume-backup.mysql: true
restic-volume-backup.mysql.: true
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
- MYSQL_DATABASE=mydb
@ -36,5 +36,18 @@ services:
volumes:
- mysqldata:/var/lib/mysql
mariadb:
image: mariadb:10
labels:
restic-volume-backup.mysql: true
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
- MYSQL_DATABASE=mydb
- MYSQL_USER=myuser
- MYSQL_PASSWORD=mypassword
volumes:
- mariadbdata:/var/lib/mysql
volumes:
mysqldata:
mariadbdata: