diff --git a/compose.yml b/compose.yml index cc6c2d8..94f31a4 100644 --- a/compose.yml +++ b/compose.yml @@ -88,6 +88,26 @@ services: done " + hashtag: + image: decentral1se/beta.lumbung.space-scripts:latest + volumes: + - content:/src/content/mastodon + secrets: + - masto_key + environment: + OUTPUT_DIR: /src/content/feed + command: | + bash -c " + export MASTODON_AUTH_TOKEN=`cat /run/secrets/masto_key`; + while true + do + echo 'generating mastodon posts...' + /usr/local/bin/lumbunglib-hash + echo 'going to sleep for 5 minutes...' + sleep 300 + done + " + volumes: content: @@ -99,3 +119,7 @@ configs: feeds_list: name: beta_lumbung_space_feeds_list_v1 file: feeds_list.txt + +secrets: + masto_key: + external: true