Simple swarm stack

This commit is contained in:
Einar Forselv 2020-03-07 00:14:11 +01:00
parent 6817f0999f
commit 88cf894689
1 changed files with 17 additions and 0 deletions

17
swarm-stack.yml Normal file
View File

@ -0,0 +1,17 @@
version: '3.7'
services:
mariadb:
image: mariadb:10
labels:
restic-compose-backup.mariadb: "true"
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
- MYSQL_DATABASE=mydb
- MYSQL_USER=myuser
- MYSQL_PASSWORD=mypassword
volumes:
- mariadbdata:/var/lib/mysql
volumes:
mariadbdata: