forked from mirror/fake-firehose
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
|
1. Create language filter
|
||||||
2. Create bot filter
|
2. Create bot filter
|
||||||
3.
|
3. Add health check
|
||||||
|
4. Back off if servers are down
|
|
@ -5,7 +5,7 @@ services:
|
||||||
build: .
|
build: .
|
||||||
image: fakefirehose:latest
|
image: fakefirehose:latest
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ../data:/data
|
||||||
- ./config:/config
|
- ./config:/config
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env.production
|
env_file: .env.production
|
|
@ -82,7 +82,7 @@ cat /config/hashtag-urls.txt >> /config/urls.txt
|
||||||
cat /config/urls.txt | while read -r url
|
cat /config/urls.txt | while read -r url
|
||||||
do
|
do
|
||||||
echo "Opening $url to stream"
|
echo "Opening $url to stream"
|
||||||
sleep 0.1s
|
sleep 0.2s
|
||||||
./stream-url.sh $url &
|
./stream-url.sh $url &
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -94,5 +94,5 @@ fi
|
||||||
## We don't have a health check, so just exit after an hour
|
## 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
|
# If your docker file has restart: always on this should gracefully exit, and
|
||||||
# then restart
|
# then restart
|
||||||
sleep 1h
|
sleep 2h
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in a new issue