mirror of
https://github.com/raynormast/fake-firehose.git
synced 2024-12-21 23:33:14 +00:00
Changed restart time; added to todo
This commit is contained in:
parent
3a5a2c34e3
commit
bd71dc16b4
3 changed files with 5 additions and 4 deletions
3
TODO.md
3
TODO.md
|
@ -1,3 +1,4 @@
|
|||
1. Create language filter
|
||||
2. Create bot filter
|
||||
3.
|
||||
3. Add health check
|
||||
4. Back off if servers are down
|
|
@ -5,7 +5,7 @@ services:
|
|||
build: .
|
||||
image: fakefirehose:latest
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ../data:/data
|
||||
- ./config:/config
|
||||
restart: always
|
||||
env_file: .env.production
|
|
@ -82,7 +82,7 @@ cat /config/hashtag-urls.txt >> /config/urls.txt
|
|||
cat /config/urls.txt | while read -r url
|
||||
do
|
||||
echo "Opening $url to stream"
|
||||
sleep 0.1s
|
||||
sleep 0.2s
|
||||
./stream-url.sh $url &
|
||||
done
|
||||
|
||||
|
@ -94,5 +94,5 @@ fi
|
|||
## We don't have a health check, so just exit after an hour
|
||||
# If your docker file has restart: always on this should gracefully exit, and
|
||||
# then restart
|
||||
sleep 1h
|
||||
sleep 2h
|
||||
exit 0
|
Loading…
Reference in a new issue