From f93d4d3c070515e55766a7e21387731edd837bfb Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sat, 12 Sep 2020 16:48:42 +0530 Subject: [PATCH] Prevent data loss in the future. --- docker-compose.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index df7bac1..2cfec4b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: MYSQL_PASSWORD: changeme restart: unless-stopped volumes: - - /var/lib/mysql + - mysql:/var/lib/mysql healthcheck: test: ["CMD", "mysqladmin", "ping", "--silent"] yotter: @@ -24,5 +24,8 @@ services: ports: - "5000:5000" volumes: - - /usr/src/app/migrations + - migrations:/usr/src/app/migrations - ./yotter-config.json:/usr/src/app/yotter-config.json +volumes: + mysql: + migrations: