From 59cfb40d27efbd50824f151445255359048586f2 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Fri, 19 Apr 2019 06:34:33 +0200 Subject: [PATCH] Add mysql test setup --- docker-compose.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 5fa4d6e..7c36720 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -12,7 +12,26 @@ services: web: image: nginx labels: + restic-volume-backup.volumes: true restic-volume-backup.include: "/tests" volumes: - ./tests:/srv/tests - ./.vscode:/srv/code + environment: + - SOME_VALUE=test + - ANOTHER_VALUE=1 + mysql: + image: mysql + labels: + restic-volume-backup.mysql: true + restic-volume-backup. + environment: + - MYSQL_ROOT_PASSWORD=my-secret-pw + - MYSQL_DATABASE=mydb + - MYSQL_USER=myuser + - MYSQL_PASSWORD=mypassword + volumes: + - mysqldata:/var/lib/mysql + +volumes: + mysqldata: \ No newline at end of file