Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Sample project for illustrating a running cronjob in docker-compose context.

Notifications You must be signed in to change notification settings

senorihl/docker-compose-cronjob

Repository files navigation

docker-compose-cronjob

Sample project for illustrating a running cronjob in docker-compose context.

Installation

Make sure you have docker running on your environment.

Then clone this repo

git clone git@github.com:Senorihl/docker-compose-cronjob.git

Running

Simple build image & run it with docker-compose

cd docker-compose-cronjob
docker-compose up -d --build

Verifying the crontab is executing

Display the logs of the mycron container.

docker-compose logs -f -t mycron