Merge pull request #55 from StuffNoOneCaresAbout/pr-anon-volumes

Prevent data loss in anonymous volumes
This commit is contained in:
PLUJA 2020-09-12 13:23:35 +02:00 committed by GitHub
commit ae84e20c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ services:
MYSQL_PASSWORD: changeme MYSQL_PASSWORD: changeme
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- /var/lib/mysql - mysql:/var/lib/mysql
healthcheck: healthcheck:
test: ["CMD", "mysqladmin", "ping", "--silent"] test: ["CMD", "mysqladmin", "ping", "--silent"]
yotter: yotter:
@ -24,5 +24,8 @@ services:
ports: ports:
- "5000:5000" - "5000:5000"
volumes: volumes:
- /usr/src/app/migrations - migrations:/usr/src/app/migrations
- ./yotter-config.json:/usr/src/app/yotter-config.json - ./yotter-config.json:/usr/src/app/yotter-config.json
volumes:
mysql:
migrations: