This commit is contained in:
koalasat 2024-07-19 12:51:06 +02:00
parent c1e9da5c6f
commit b7f9f1827e
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157
5 changed files with 12 additions and 10 deletions

View File

@ -228,12 +228,12 @@ services:
strfry:
build: ./docker/strfry
command: /app/strfry.sh
container_name: strfry-dev
restart: unless-stopped
volumes:
- ./docker/strfry/strfry.conf:/app/strfry.conf
- ./node/strfry/db:/app/strfry-db
- ./docker/strfry:/etc/strfry
- ./node/strfry/log/:/var/log/
network_mode: service:tor
# # Postgresql for CLN

View File

@ -1,11 +1,11 @@
FROM dockurr/strfry:0.9.6
USER root
RUN apk add --no-cache dcron curl iproute2
RUN apk add --no-cache dcron
ADD . /app
RUN crontab -u root /etc/crontab
COPY entrypoint.sh /etc/strfry/entrypoint.sh
ENTRYPOINT ["/etc/entrypoint.sh"]
RUN chmod +x /etc/strfry/entrypoint.sh
CMD ["$@"]
ENTRYPOINT ["/etc/strfry/entrypoint.sh"]

View File

@ -21,4 +21,4 @@
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
*/1 * * * * bash '/app/strfry sync wss://nostr.satstralia.com --dir both >> /var/log/cron.log 2>&1'
*/1 * * * * /app/strfry --config /app/strfry.conf sync wss://nostr.satstralia.com --dir both >> /var/log/cron.log 2>&1

View File

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

View File

@ -3,7 +3,7 @@
##
# Directory that contains the strfry LMDB database (restart required)
db = "./strfry-db/"
db = "/app/strfry-db/"
dbParams {
# Maximum number of threads/processes that can simultaneously have LMDB transactions open (restart required)