From f317cf23f526833481163a2d3130e37beac11d54 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 29 Dec 2018 20:50:46 +0000 Subject: [PATCH] Added a volume to persist db data in Docker. --- WEB-INF/templates/footer.tpl | 2 +- docker-compose.yml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index f2ab255e..5d77a19a 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.36.4695 | Copyright © Anuko | +  Anuko Time Tracker 1.18.36.4696 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/docker-compose.yml b/docker-compose.yml index b5ecef92..e516fada 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: # creation of its configuration file. Specifically, we replace # user name, password, service name (aka resolvable to IP server name # where mariadb runs), and database name there from the defaults. - # Apparently, these two sets of credentials must match for successful connect. + # These two sets of credentials must match for a successful connect. anuko_sql: image: "mariadb:latest" container_name: anuko-sql @@ -24,3 +24,8 @@ services: MYSQL_DATABASE: timetracker MYSQL_USER: anuko_user MYSQL_PASSWORD: anuko_pw + volumes: + - db-data:/var/lib/mysql + +volumes: + db-data: \ No newline at end of file -- 2.20.1