48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
services:
|
|
duplicati:
|
|
image: duplicati/duplicati:2.2.0.3
|
|
user: 2011:2011 # duplicati:duplicati
|
|
restart: unless-stopped
|
|
depends_on:
|
|
init:
|
|
condition: service_completed_successfully
|
|
restart: true
|
|
env_file: ./.env
|
|
networks:
|
|
- duplicati_network
|
|
ports:
|
|
- 8200:8200 # Web UI
|
|
volumes:
|
|
- data:/data:rw
|
|
- source:/source:rw
|
|
- /mnt/duplicati_backup_1/backups:/backups:rw
|
|
# Sources
|
|
- /services/syncthing/data/Contacts:/source/Contacts:ro
|
|
- /services/syncthing/data/KeePass:/source/KeePass:ro
|
|
- /services/syncthing/data/Obsidian:/source/Obsidian:ro
|
|
- /services/syncthing/data/SMS:/source/SMS:ro
|
|
|
|
init:
|
|
image: busybox:1.37.0
|
|
user: root:root
|
|
command: /init.sh
|
|
restart: no
|
|
network_mode: none
|
|
volumes:
|
|
- ./init.sh:/init.sh:ro
|
|
# Used for resolving user and group names in the init script
|
|
- /etc/passwd:/etc/passwd:ro
|
|
- /etc/group:/etc/group:ro
|
|
# Mount all named volumes so they can be initialised
|
|
- data:/data:rw
|
|
- source:/source:rw
|
|
|
|
networks:
|
|
duplicati_network:
|
|
name: duplicati_network
|
|
|
|
volumes:
|
|
data:
|
|
source:
|
|
|