68 lines
1.3 KiB
YAML
68 lines
1.3 KiB
YAML
|
commands:
|
||
|
stop-docker-container:
|
||
|
cmd: docker
|
||
|
cmdArgs:
|
||
|
- compose
|
||
|
- -f /some/path/to/docker-compose.yaml
|
||
|
- down
|
||
|
# if host is not defined,
|
||
|
host: some-host
|
||
|
env: ~/path/to/env/file
|
||
|
backup-docker-container-script:
|
||
|
cmd: /path/to/script
|
||
|
host: some-host
|
||
|
env: ~/path/to/env/file
|
||
|
shell-cmd:
|
||
|
cmd: rsync
|
||
|
shell: bash
|
||
|
cmdArgs:
|
||
|
- -av some-host:/path/to/data ~/Docker/Backups/docker-data
|
||
|
hostname:
|
||
|
cmd: hostname
|
||
|
|
||
|
cmd-configs:
|
||
|
# this can be any name you want
|
||
|
cmds-to-run:
|
||
|
# all commands have to be defined
|
||
|
order:
|
||
|
- stop-docker-container
|
||
|
- backup-docker-container-script
|
||
|
- shell-cmd
|
||
|
- hostname
|
||
|
notifications:
|
||
|
- matrix
|
||
|
hostname:
|
||
|
order:
|
||
|
- hostname
|
||
|
notifications:
|
||
|
- prod-email
|
||
|
|
||
|
hosts:
|
||
|
some-host:
|
||
|
config:
|
||
|
usefile: true
|
||
|
user: root
|
||
|
private-key-path:
|
||
|
|
||
|
logging:
|
||
|
verbose: true
|
||
|
file: /path/to/logs/commands.log
|
||
|
|
||
|
|
||
|
notifications:
|
||
|
prod-email:
|
||
|
id: prod-email
|
||
|
type: mail
|
||
|
host: yourhost.tld:port
|
||
|
senderAddress: email@domain.tld
|
||
|
to:
|
||
|
- admin@domain.tld
|
||
|
username: smtp-username@domain.tld
|
||
|
password: your-password-here
|
||
|
matrix:
|
||
|
id: matrix
|
||
|
type: matrix
|
||
|
home-server: your-home-server.tld
|
||
|
room-id: room-id
|
||
|
access-token: your-access-token
|
||
|
user-id: your-user-id
|