diff --git a/TODO.md b/TODO.md index 2cf1f39..d5d0f65 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,4 @@ 1. Create language filter 2. Create bot filter -3. \ No newline at end of file +3. Add health check +4. Back off if servers are down \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index fa6c194..dc0cd7b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: . image: fakefirehose:latest volumes: - - ./data:/data + - ../data:/data - ./config:/config restart: always env_file: .env.production \ No newline at end of file diff --git a/scripts/start-firehose.sh b/scripts/start-firehose.sh index 50e76a9..c901ba3 100644 --- a/scripts/start-firehose.sh +++ b/scripts/start-firehose.sh @@ -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 \ No newline at end of file