2024-05-05 22:38:14 +02:00
|
|
|
services:
|
|
|
|
# Backup
|
|
|
|
backup:
|
2024-05-19 13:40:44 +02:00
|
|
|
image: cupcakearmy/autorestic:latest
|
2024-05-05 22:38:14 +02:00
|
|
|
container_name: backup
|
|
|
|
profiles:
|
|
|
|
- backup
|
2024-05-12 12:00:12 +02:00
|
|
|
restart: on-failure:5
|
2024-05-05 22:38:14 +02:00
|
|
|
env_file:
|
|
|
|
- env/backup.env
|
2024-05-19 13:40:44 +02:00
|
|
|
#entrypoint: ["autorestic", "backup", "--ci", "-va", "-c", "/data/autorestic.yml"]
|
|
|
|
entrypoint: ["restic init --repository-version 2 --repo", "/data/caddy_data"]
|
2024-05-05 22:38:14 +02:00
|
|
|
volumes:
|
2024-05-19 13:40:44 +02:00
|
|
|
- backup:/backup
|
|
|
|
- ./config/backup/autorestic.yml:/data/autorestic.yml:ro
|
2024-05-18 18:07:56 +02:00
|
|
|
- caddy_data:/data/caddy_data:ro
|
2024-05-18 18:27:22 +02:00
|
|
|
- caddy_config:/data/caddy_config:ro
|
2024-05-18 18:07:56 +02:00
|
|
|
# - gitea_data:/data/gitea_data:ro
|
|
|
|
# - gitea_config:/data/gitea_config:ro
|
|
|
|
# - wordpress_db:/data/wordpress_db:ro
|
|
|
|
# - wordpress:/data/wordpress:ro
|
|
|
|
# - jellyfin_config:/data/jellyfin_config:ro
|
|
|
|
# - jellyfin_data:/data/jellyfin_data:ro
|
|
|
|
# - jellyfin_cache:/data/jellyfin_cache:ro
|
|
|
|
# - qbittorrent_config:/data/qbittorrent_config:ro
|
|
|
|
# - qbittorrent_data:/data/qbittorrent_data:ro
|
|
|
|
# - uptimekuma_data:/data/uptimekuma_data:ro
|
2024-05-05 22:38:14 +02:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
backup:
|
|
|
|
name: backup
|