2021-12-15 10:29:58 +00:00
|
|
|
---
|
|
|
|
version: "3.8"
|
2021-12-15 11:08:23 +00:00
|
|
|
|
2021-12-15 10:29:58 +00:00
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: decentral1se/beta.lumbung.space:latest
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:1313"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 10
|
|
|
|
start_period: 15s
|
|
|
|
volumes:
|
|
|
|
- content:/src/content
|
2022-01-05 10:02:44 +00:00
|
|
|
command: |
|
|
|
|
server
|
|
|
|
--appendPort='false'
|
|
|
|
--bind 0.0.0.0
|
|
|
|
--baseUrl='https://beta.lumbung.space'
|
|
|
|
--port='1313'
|
|
|
|
--buildFuture
|
|
|
|
--watch
|
2021-12-15 10:29:58 +00:00
|
|
|
deploy:
|
|
|
|
update_config:
|
|
|
|
failure_action: rollback
|
|
|
|
order: start-first
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2022-01-24 09:44:01 +00:00
|
|
|
- "traefik.http.routers.coop-cloud-site.rule=Host(`lumbung.space`,`beta.lumbung.space`)"
|
2021-12-15 10:29:58 +00:00
|
|
|
- "traefik.http.routers.coop-cloud-site.entrypoints=web-secure"
|
|
|
|
- "traefik.http.services.coop-cloud-site.loadbalancer.server.port=1313"
|
|
|
|
- "traefik.http.routers.coop-cloud-site.tls.certresolver=production"
|
2021-12-15 11:08:23 +00:00
|
|
|
|
2022-01-17 13:13:24 +00:00
|
|
|
tv:
|
2022-01-05 11:53:04 +00:00
|
|
|
image: decentral1se/beta.lumbung.space-scripts:latest
|
|
|
|
volumes:
|
|
|
|
- content:/src/content
|
|
|
|
environment:
|
2022-01-17 13:13:24 +00:00
|
|
|
OUTPUT_DIR: /src/content/tv
|
2022-01-05 11:53:04 +00:00
|
|
|
command: |
|
|
|
|
bash -c "
|
|
|
|
while true
|
|
|
|
do
|
2022-01-17 13:13:24 +00:00
|
|
|
echo 'generating tv posts...'
|
2022-01-06 15:02:19 +00:00
|
|
|
/usr/local/bin/lumbunglib-vid
|
2022-01-05 11:53:04 +00:00
|
|
|
echo 'going to sleep for 5 minutes...'
|
|
|
|
sleep 300
|
|
|
|
done
|
|
|
|
"
|
|
|
|
|
|
|
|
calendar:
|
|
|
|
image: decentral1se/beta.lumbung.space-scripts:latest
|
|
|
|
volumes:
|
|
|
|
- content:/src/content
|
|
|
|
environment:
|
2022-01-05 13:29:41 +00:00
|
|
|
OUTPUT_DIR: /src/content/calendar
|
2022-01-05 11:53:04 +00:00
|
|
|
CALENDAR_URL: "https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"
|
|
|
|
command: |
|
|
|
|
bash -c "
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
echo 'generating calendar posts...'
|
2022-01-06 15:02:19 +00:00
|
|
|
/usr/local/bin/lumbunglib-cal
|
2022-01-05 11:53:04 +00:00
|
|
|
echo 'going to sleep for 5 minutes...'
|
|
|
|
sleep 300
|
|
|
|
done
|
|
|
|
"
|
|
|
|
|
2022-01-17 13:13:24 +00:00
|
|
|
shouts:
|
2022-01-05 12:48:54 +00:00
|
|
|
image: decentral1se/beta.lumbung.space-scripts:latest
|
|
|
|
volumes:
|
|
|
|
- content:/src/content
|
|
|
|
configs:
|
|
|
|
- source: feeds_list
|
|
|
|
target: /src/feeds_list.txt
|
|
|
|
environment:
|
2022-01-17 13:13:24 +00:00
|
|
|
OUTPUT_DIR: /src/content/shouts
|
2022-01-05 12:48:54 +00:00
|
|
|
command: |
|
|
|
|
bash -c "
|
|
|
|
while true
|
|
|
|
do
|
2022-01-17 13:13:24 +00:00
|
|
|
echo 'generating shouts posts...'
|
2022-01-06 15:02:19 +00:00
|
|
|
/usr/local/bin/lumbunglib-feed
|
2022-01-05 12:48:54 +00:00
|
|
|
echo 'going to sleep for 5 minutes...'
|
|
|
|
sleep 300
|
|
|
|
done
|
|
|
|
"
|
|
|
|
|
2022-01-17 13:13:24 +00:00
|
|
|
pen:
|
|
|
|
image: decentral1se/beta.lumbung.space-scripts:latest
|
|
|
|
volumes:
|
|
|
|
- content:/src/content
|
|
|
|
configs:
|
|
|
|
- source: feeds_list_pen
|
|
|
|
target: /src/feeds_list.txt
|
|
|
|
environment:
|
|
|
|
OUTPUT_DIR: /src/content/pen
|
|
|
|
command: |
|
|
|
|
bash -c "
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
echo 'generating pen posts...'
|
|
|
|
/usr/local/bin/lumbunglib-feed
|
|
|
|
echo 'going to sleep for 5 minutes...'
|
|
|
|
sleep 300
|
|
|
|
done
|
|
|
|
"
|
|
|
|
|
|
|
|
social:
|
2022-01-10 18:12:49 +00:00
|
|
|
image: decentral1se/beta.lumbung.space-scripts:latest
|
|
|
|
volumes:
|
2022-01-12 09:28:06 +00:00
|
|
|
- content:/src/content/
|
2022-01-10 18:12:49 +00:00
|
|
|
secrets:
|
|
|
|
- masto_key
|
|
|
|
environment:
|
2022-01-17 13:13:24 +00:00
|
|
|
OUTPUT_DIR: /src/content/social
|
2022-01-10 18:12:49 +00:00
|
|
|
command: |
|
|
|
|
bash -c "
|
|
|
|
export MASTODON_AUTH_TOKEN=`cat /run/secrets/masto_key`;
|
|
|
|
while true
|
|
|
|
do
|
2022-01-17 13:13:24 +00:00
|
|
|
echo 'generating social posts...'
|
2022-01-10 18:12:49 +00:00
|
|
|
/usr/local/bin/lumbunglib-hash
|
|
|
|
echo 'going to sleep for 5 minutes...'
|
|
|
|
sleep 300
|
|
|
|
done
|
|
|
|
"
|
|
|
|
|
2021-12-15 10:29:58 +00:00
|
|
|
volumes:
|
|
|
|
content:
|
2021-12-15 11:08:23 +00:00
|
|
|
|
2021-12-15 10:29:58 +00:00
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|
2022-01-05 12:48:54 +00:00
|
|
|
|
|
|
|
configs:
|
|
|
|
feeds_list:
|
|
|
|
name: beta_lumbung_space_feeds_list_v1
|
|
|
|
file: feeds_list.txt
|
2022-01-17 13:13:24 +00:00
|
|
|
feeds_list_pen:
|
|
|
|
name: beta_lumbung_space_feeds_list_pen_v1
|
|
|
|
file: feeds_list_pen.txt
|
2022-01-10 18:12:49 +00:00
|
|
|
|
|
|
|
secrets:
|
|
|
|
masto_key:
|
2022-01-11 15:01:03 +00:00
|
|
|
name: beta_lumbung_space_masto_key_v1
|
2022-01-10 18:12:49 +00:00
|
|
|
external: true
|