-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from benyafai/main
🐳 docker-compose
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: fedifetcher | ||
services: | ||
fedifetcher: | ||
stdin_open: true | ||
tty: true | ||
image: ghcr.io/nanos/fedifetcher:latest | ||
command: "--access-token=<TOKEN> --server=<SERVER>" | ||
# Persist our data | ||
volumes: | ||
- ./data:/app/artifacts | ||
# Use the `deploy` option to enable `restart_policy` | ||
deploy: | ||
# Don't go above 1 replica to avoid multiple overlapping executions of the script | ||
replicas: 1 | ||
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 |