mirror of
https://github.com/AskDavis/cyphernode.git
synced 2026-01-01 04:25:58 -08:00
Fixed cln directory and some permission issues
This commit is contained in:
@@ -12,11 +12,12 @@ services:
|
||||
# Variable substitutions don't work
|
||||
# Match with DB_PATH in proxy_docker/env.properties
|
||||
- "~/btcproxydb:/proxy/db"
|
||||
- "~/lndata:/proxy/.lightning"
|
||||
# c-lightning looks for $HOME/.lightning/, and $HOME is set to / in the container
|
||||
- "~/lndata:/.lightning"
|
||||
# deploy:
|
||||
# placement:
|
||||
# constraints: [node.hostname==dev]
|
||||
command: $USER /proxy/startproxy.sh
|
||||
command: $USER ./startproxy.sh
|
||||
networks:
|
||||
- cyphernodenet
|
||||
|
||||
@@ -41,7 +42,7 @@ services:
|
||||
# deploy:
|
||||
# placement:
|
||||
# constraints: [node.hostname==dev]
|
||||
command: $USER /pycoin/startpycoin.sh
|
||||
command: $USER ./startpycoin.sh
|
||||
networks:
|
||||
- cyphernodenet
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ COPY app/bin/lightning-cli_x86 ${HOME}/lightning-cli
|
||||
WORKDIR ${HOME}
|
||||
|
||||
RUN chmod +x startproxy.sh requesthandler.sh lightning-cli \
|
||||
&& chmod o+w . \
|
||||
&& mkdir db
|
||||
|
||||
VOLUME ["${HOME}/db", "${HOME}/.lightning"]
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
trace()
|
||||
{
|
||||
if [ -n "${TRACING}" ]; then
|
||||
echo "$(date -Is) ${1}" > /dev/stderr
|
||||
echo "$(date -Is) ${1}" 1>&2
|
||||
fi
|
||||
}
|
||||
|
||||
trace_rc()
|
||||
{
|
||||
if [ -n "${TRACING}" ]; then
|
||||
echo "$(date -Is) Last return code: ${1}" > /dev/stderr
|
||||
echo "$(date -Is) Last return code: ${1}" 1>&2
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ WATCHER_BTC_NODE_RPC_URL=btcnode:18332/wallet/watching01.dat
|
||||
SPENDER_BTC_NODE_RPC_URL=btcnode:18332/wallet/spending01.dat
|
||||
PROXY_LISTENING_PORT=8888
|
||||
# Variable substitutions don't work
|
||||
HOME=/proxy
|
||||
DB_PATH=/proxy/db
|
||||
DB_FILE=/proxy/db/proxydb
|
||||
# Pycoin container
|
||||
|
||||
Reference in New Issue
Block a user