From 123f863b5110fa468ee5d2b3cee719aa3aa22c3e Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Mon, 2 Dec 2019 21:31:35 +0100 Subject: [PATCH] Add mariadb to dev setup --- docker-compose.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index c4d8004..3e8cc60 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: \ No newline at end of file