rorenv/backup/docker-compose.yml

36 lines
711 B
YAML
Raw Normal View History

2023-05-05 12:44:29 +09:00
version: "3.9"
volumes:
kopano:
name: docker_kopano
external: true
gitea:
name: docker_gitea
external: true
db:
name: docker_mysql
external: true
services:
backup:
build: ./
image: custom/backup:1.0.0
container_name: backup
restart: "no"
environment:
TZ: Asia/Tokyo
DO_BACKUP: "true"
hostname: exbackup
stdin_open: true
tty: true
volumes:
# Kopano
- kopano:/tmp/kopano/var/lib/kopano/attachments
# Gitea
- gitea:/tmp/gitea/data
- ../docker/config/gitea/conf:/tmp/gitea/data/gitea/conf
# MySQL
- db:/tmp/mysql/var/lib/mysql
# Backup directory
- ../backup/backups:/mnt/backups