mirror of
https://github.com/nicholasr-itsulu/FediFetcher.git
synced 2026-05-30 23:41:26 +00:00
Override the entrypoint so we can add a sleep delay before the next run.
This commit is contained in:
parent
091e2afe1e
commit
3b1baf566f
1 changed files with 3 additions and 4 deletions
|
|
@ -4,7 +4,8 @@ services:
|
|||
stdin_open: true
|
||||
tty: true
|
||||
image: ghcr.io/nanos/fedifetcher:latest
|
||||
command: "--access-token=<TOKEN> --server=<SERVER>"
|
||||
# We override the Dockerfile entrypoint, run the python code with our commands, then append our sleep command.
|
||||
entrypoint: ["sh", "-c", "python /app/find_posts.py --access-token=<TOKEN> --server=<SERVER>; sleep 3600; "]
|
||||
# Persist our data
|
||||
volumes:
|
||||
- ./data:/app/artifacts
|
||||
|
|
@ -15,5 +16,3 @@ services:
|
|||
restart_policy:
|
||||
# The `any` condition means even after successful runs, we'll restart the script
|
||||
condition: any
|
||||
# Specify how often the script should run - for example; after 1 hour.
|
||||
delay: 1h
|
||||
Loading…
Reference in a new issue