diff --git a/docker-compose.yml b/docker-compose.yml index bd70fa70..78ad512a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -232,6 +232,7 @@ services: restart: unless-stopped volumes: - ./docker/strfry/strfry.conf:/app/strfry.conf + - ./docker/strfry/sync.sh:/app/sync.sh - ./node/strfry/db:/app/strfry-db - ./node/strfry/log/:/var/log/ network_mode: service:tor diff --git a/docker/strfry/Dockerfile b/docker/strfry/Dockerfile index 159b6e70..5d42b72d 100644 --- a/docker/strfry/Dockerfile +++ b/docker/strfry/Dockerfile @@ -1,6 +1,8 @@ FROM dockurr/strfry:0.9.6 -RUN apk add --no-cache dcron curl iproute2 +RUN apk add --no-cache dcron torsocks + +RUN echo "TorAddress 127.0.0.1:9050" > /etc/tor/torsocks.conf ADD . /app diff --git a/docker/strfry/crontab b/docker/strfry/crontab index 6e7fef56..ec45be69 100644 --- a/docker/strfry/crontab +++ b/docker/strfry/crontab @@ -21,4 +21,4 @@ # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command -*/1 * * * * /app/strfry --config /app/strfry.conf sync wss://nostr.satstralia.com --filter '{"kinds":[38383]}' --dir both >> /var/log/cron.log 2>&1 +*/1 * * * * torsocks /app/sync.sh diff --git a/docker/strfry/sync.sh b/docker/strfry/sync.sh new file mode 100755 index 00000000..b3d1a892 --- /dev/null +++ b/docker/strfry/sync.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +/app/strfry --config /app/strfry.conf sync wss://nostr.satstralia.com --filter '{"kinds":[38383]}' --dir both >> /var/log/cron.log 2>&1