Repository navigation
|
Hi! Where should I place hook bash scripts when using docker (docker-compose), e.g. mailer.sh or check-repo-lock-status.sh |
Replies: 1 comment
|
Ok, found it. Added the line below and copied some bash scripts in the host path .../scripts/ services: |
Ok, found it. Added the line below and copied some bash scripts in the host path .../scripts/
services:
backrest:
image: garethgeorge/backrest:latest
container_name: backrest
hostname: backrest
volumes:
- CHANGE_TO_COMPOSE_DATA_PATH/backrest/data:/data
- CHANGE_TO_COMPOSE_DATA_PATH/backrest/config:/config
- CHANGE_TO_COMPOSE_DATA_PATH/backrest/cache:/cache
- CHANGE_TO_COMPOSE_DATA_PATH/backrest/scripts:/scripts
environment:
- BACKREST_DATA=/data # path for backrest data. restic binary and the database are placed here.
- BACKREST_CONFIG=/config/config.json # path for the backrest config file.
- XDG_CACHE_HOME=/cache # path for the restic cache which greatly improves performance.
- TZ=Europ…