Skip to content

Commit

Permalink
docs: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
ismdeep committed Apr 24, 2024
1 parent 88a154e commit 0b4b4a4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# cron
# cron

# Quick Start

docker-compose.yaml

```
services:
cron-service:
image: ismdeep/cron:latest
environment:
TZ: Asia/Shanghai
CRON_SPEC: '@every 1m'
CRON_COMMAND: 'date'
CRON_RUN_AT_START: true
restart: always
```

9 changes: 9 additions & 0 deletions example/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
cron-service:
image: ismdeep/cron:latest
environment:
TZ: Asia/Shanghai
CRON_SPEC: '@every 1m'
CRON_COMMAND: 'date'
CRON_RUN_AT_START: true
restart: always

0 comments on commit 0b4b4a4

Please sign in to comment.