restic-compose-backup/swarm-stack.yml

31 lines
544 B
YAML
Raw Permalink Normal View History

2020-03-06 23:14:11 +00:00
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
networks:
- global
2020-03-06 23:14:11 +00:00
volumes:
- mariadbdata:/var/lib/mysql
files:
image: nginx:1.17-alpine
2020-03-08 16:38:01 +00:00
labels:
restic-compose-backup.volumes: "true"
volumes:
- files:/srv/files
2020-03-06 23:14:11 +00:00
volumes:
mariadbdata:
files:
networks:
global:
external: true