docker-cron-global-stack/docker-compose.yml

15 lines
396 B
YAML

version: "2.1"
services:
cron:
image: cron:$VERSION_CRON
restart: always
network_mode: "host"
volumes:
- ${RUN_DIRECTORY}/crontab.yaml:/root/crontab.yaml:Z
- ${RUN_DIRECTORY}/id_rsa:/root/.ssh/id_rsa:Z
- ${RUN_DIRECTORY}/id_rsa.pub:/root/.ssh/id_rsa.pub:Z
- ${RUN_DIRECTORY}/config:/root/.ssh/config:Z
- ${RUN_DIRECTORY}/scripts:/root/scripts:Z