mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-24 00:33:20 +00:00
Working
This commit is contained in:
@ -228,12 +228,12 @@ services:
|
|||||||
|
|
||||||
strfry:
|
strfry:
|
||||||
build: ./docker/strfry
|
build: ./docker/strfry
|
||||||
command: /app/strfry.sh
|
|
||||||
container_name: strfry-dev
|
container_name: strfry-dev
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./docker/strfry/strfry.conf:/app/strfry.conf
|
||||||
- ./node/strfry/db:/app/strfry-db
|
- ./node/strfry/db:/app/strfry-db
|
||||||
- ./docker/strfry:/etc/strfry
|
- ./node/strfry/log/:/var/log/
|
||||||
network_mode: service:tor
|
network_mode: service:tor
|
||||||
|
|
||||||
# # Postgresql for CLN
|
# # Postgresql for CLN
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
FROM dockurr/strfry:0.9.6
|
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"]
|
||||||
|
@ -21,4 +21,4 @@
|
|||||||
# For more information see the manual pages of crontab(5) and cron(8)
|
# For more information see the manual pages of crontab(5) and cron(8)
|
||||||
#
|
#
|
||||||
# m h dom mon dow command
|
# 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
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
crond -f -l 8
|
crontab /app/crontab
|
||||||
|
|
||||||
|
crond -f -l 8 & /app/strfry.sh
|
@ -3,7 +3,7 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
# Directory that contains the strfry LMDB database (restart required)
|
# Directory that contains the strfry LMDB database (restart required)
|
||||||
db = "./strfry-db/"
|
db = "/app/strfry-db/"
|
||||||
|
|
||||||
dbParams {
|
dbParams {
|
||||||
# Maximum number of threads/processes that can simultaneously have LMDB transactions open (restart required)
|
# Maximum number of threads/processes that can simultaneously have LMDB transactions open (restart required)
|
||||||
|
Reference in New Issue
Block a user