31 lines
544 B
YAML
31 lines
544 B
YAML
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
|
|
volumes:
|
|
- mariadbdata:/var/lib/mysql
|
|
files:
|
|
image: nginx:1.17-alpine
|
|
labels:
|
|
restic-compose-backup.volumes: "true"
|
|
volumes:
|
|
- files:/srv/files
|
|
|
|
volumes:
|
|
mariadbdata:
|
|
files:
|
|
|
|
networks:
|
|
global:
|
|
external: true
|