docker-crontab/docker-compose.yml

16 lines
339 B
YAML

version: "2.1"
services:
myapp:
image: alpine:3.5
restart: always
command: "sh -c 'while :; do sleep 1; done'"
crontab:
build: .
restart: always
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
# - "/usr/bin/docker:/usr/bin/docker:ro"
- "${PWD}/config.json:/opt/crontab/config.json:rw"