Logs to docker

This commit is contained in:
koalasat 2024-07-24 18:56:54 +02:00
parent ab1a488a4b
commit 507082d865
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157
4 changed files with 9 additions and 9 deletions

View File

@ -234,7 +234,6 @@ services:
- ./docker/strfry/strfry.conf:/etc/strfry.conf:ro
- ./docker/strfry/sync.sh:/app/sync.sh:ro
- ./node/strfry/db:/app/strfry-db:rw
- ./node/strfry/log/:/var/log:rw
network_mode: service:tor
# # Postgresql for CLN

View File

@ -1,11 +1,14 @@
FROM dockurr/strfry:0.9.6
RUN apk add --no-cache dcron torsocks
RUN apk add --no-cache torsocks
RUN echo "TorAddress 127.0.0.1" >> /etc/tor/torsocks.conf
RUN echo "TorPort 9050" >> /etc/tor/torsocks.conf
COPY crontab /app/crontab
# Setting up crontab
COPY crontab /tmp/crontab
RUN cat /tmp/crontab > /etc/crontabs/root
COPY entrypoint.sh /etc/strfry/entrypoint.sh
RUN chmod +x /etc/strfry/entrypoint.sh

View File

@ -1,5 +1,3 @@
#!/bin/sh
crontab /app/crontab
crond -f -l 8 & /app/strfry.sh

View File

@ -2,7 +2,7 @@
filters='{"kinds":[38383]}'
/app/strfry --config /etc/strfry.conf sync ws://testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1
/app/strfry --config /etc/strfry.conf sync ws://jpp3w5tpxtyg6lifonisdszpriiapszzem4wod2zsdweyfenlsxeoxid.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1
/app/strfry --config /etc/strfry.conf sync ws://ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1
/app/strfry --config /etc/strfry.conf sync ws://wsjyhbashc4zrrex6vijpryujggbka5plry2o62dxqoz3pxinblnj4ad.onion/nostr --filter "$filters" --dir both >> /var/log/cron.log 2>&1
/app/strfry --config /etc/strfry.conf sync ws://testraliar7xkhos2gipv2k65obykofb4jqzl5l4danfryacifi4t7qd.onion/nostr --filter "$filters" --dir both
/app/strfry --config /etc/strfry.conf sync ws://jpp3w5tpxtyg6lifonisdszpriiapszzem4wod2zsdweyfenlsxeoxid.onion/nostr --filter "$filters" --dir both
/app/strfry --config /etc/strfry.conf sync ws://ghbtv7lhoyhomyir4xvxaeyqgx4ylxksia343jaat3njqqlkqpdjqcyd.onion/nostr --filter "$filters" --dir both
/app/strfry --config /etc/strfry.conf sync ws://wsjyhbashc4zrrex6vijpryujggbka5plry2o62dxqoz3pxinblnj4ad.onion/nostr --filter "$filters" --dir both