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

15 lines
386 B
YAML
Raw Permalink Normal View History

2020-02-26 17:11:28 +00:00
version: "2.1"
services:
cron:
image: cron:$VERSION_CRON
restart: always
network_mode: "host"
volumes:
- ${RUN_DIRECTORY}/crontab.yaml:/root/crontab.yaml
- ${RUN_DIRECTORY}/id_rsa:/root/.ssh/id_rsa
- ${RUN_DIRECTORY}/id_rsa.pub:/root/.ssh/id_rsa.pub
- ${RUN_DIRECTORY}/config:/root/.ssh/config
- ${RUN_DIRECTORY}/scripts:/root/scripts