docker-crontab/docker-compose.yml

16 lines
339 B
YAML
Raw Normal View History

2017-02-12 16:28:53 -07:00
version: "2.1"
services:
myapp:
image: alpine:3.5
restart: always
command: "sh -c 'while :; do sleep 1; done'"
crontab:
build: .
restart: always
volumes:
2017-02-14 07:44:14 -07:00
- "/var/run/docker.sock:/var/run/docker.sock:ro"
2017-02-15 10:58:57 -07:00
# - "/usr/bin/docker:/usr/bin/docker:ro"
- "${PWD}/config.json:/opt/crontab/config.json:rw"