We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 091e2af + 3b1baf5 commit 5adea1cCopy full SHA for 5adea1c
examples/docker-compose.yaml
@@ -4,7 +4,8 @@ services:
4
stdin_open: true
5
tty: true
6
image: ghcr.io/nanos/fedifetcher:latest
7
- command: "--access-token=<TOKEN> --server=<SERVER>"
+ # We override the Dockerfile entrypoint, run the python code with our commands, then append our sleep command.
8
+ entrypoint: ["sh", "-c", "python /app/find_posts.py --access-token=<TOKEN> --server=<SERVER>; sleep 3600; "]
9
# Persist our data
10
volumes:
11
- ./data:/app/artifacts
@@ -14,6 +15,4 @@ services:
14
15
replicas: 1
16
restart_policy:
17
# The `any` condition means even after successful runs, we'll restart the script
- condition: any
18
- # Specify how often the script should run - for example; after 1 hour.
19
- delay: 1h
+ condition: any
0 commit comments