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
|
# Variable substitutions don't work
|
||||||
# Match with DB_PATH in proxy_docker/env.properties
|
# Match with DB_PATH in proxy_docker/env.properties
|
||||||
- "~/btcproxydb:/proxy/db"
|
- "~/btcproxydb:/proxy/db"
|
||||||
- "~/lndata:/proxy/.lightning"
|
# c-lightning looks for $HOME/.lightning/, and $HOME is set to / in the container
|
||||||
|
- "~/lndata:/.lightning"
|
||||||
# deploy:
|
# deploy:
|
||||||
# placement:
|
# placement:
|
||||||
# constraints: [node.hostname==dev]
|
# constraints: [node.hostname==dev]
|
||||||
command: $USER /proxy/startproxy.sh
|
command: $USER ./startproxy.sh
|
||||||
networks:
|
networks:
|
||||||
- cyphernodenet
|
- cyphernodenet
|
||||||
|
|
||||||
@@ -41,7 +42,7 @@ services:
|
|||||||
# deploy:
|
# deploy:
|
||||||
# placement:
|
# placement:
|
||||||
# constraints: [node.hostname==dev]
|
# constraints: [node.hostname==dev]
|
||||||
command: $USER /pycoin/startpycoin.sh
|
command: $USER ./startpycoin.sh
|
||||||
networks:
|
networks:
|
||||||
- cyphernodenet
|
- cyphernodenet
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ COPY app/bin/lightning-cli_x86 ${HOME}/lightning-cli
|
|||||||
WORKDIR ${HOME}
|
WORKDIR ${HOME}
|
||||||
|
|
||||||
RUN chmod +x startproxy.sh requesthandler.sh lightning-cli \
|
RUN chmod +x startproxy.sh requesthandler.sh lightning-cli \
|
||||||
|
&& chmod o+w . \
|
||||||
&& mkdir db
|
&& mkdir db
|
||||||
|
|
||||||
VOLUME ["${HOME}/db", "${HOME}/.lightning"]
|
VOLUME ["${HOME}/db", "${HOME}/.lightning"]
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
trace()
|
trace()
|
||||||
{
|
{
|
||||||
if [ -n "${TRACING}" ]; then
|
if [ -n "${TRACING}" ]; then
|
||||||
echo "$(date -Is) ${1}" > /dev/stderr
|
echo "$(date -Is) ${1}" 1>&2
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
trace_rc()
|
trace_rc()
|
||||||
{
|
{
|
||||||
if [ -n "${TRACING}" ]; then
|
if [ -n "${TRACING}" ]; then
|
||||||
echo "$(date -Is) Last return code: ${1}" > /dev/stderr
|
echo "$(date -Is) Last return code: ${1}" 1>&2
|
||||||
fi
|
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
|
SPENDER_BTC_NODE_RPC_URL=btcnode:18332/wallet/spending01.dat
|
||||||
PROXY_LISTENING_PORT=8888
|
PROXY_LISTENING_PORT=8888
|
||||||
# Variable substitutions don't work
|
# Variable substitutions don't work
|
||||||
|
HOME=/proxy
|
||||||
DB_PATH=/proxy/db
|
DB_PATH=/proxy/db
|
||||||
DB_FILE=/proxy/db/proxydb
|
DB_FILE=/proxy/db/proxydb
|
||||||
# Pycoin container
|
# Pycoin container
|
||||||
|
|||||||
Reference in New Issue
Block a user