Prevent data loss in the future.

This commit is contained in:
FireMasterK 2020-09-12 16:48:42 +05:30
parent 1116db7177
commit f93d4d3c07
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58

View File

@ -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: