Browse Source

Add lnmarkets app (#879)

Co-authored-by: Kilian Botrel <kilian.botrel@ito.am>
Co-authored-by: Lounès Ksouri <dev@louneskmt.com>
Co-authored-by: Luke Childs <lukechilds123@gmail.com>
revert-rtl
kibotrel 3 years ago
committed by GitHub
parent
commit
c540621fc5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      apps/lnmarkets/docker-compose.yml
  2. 25
      apps/registry.json
  3. 4
      scripts/configure
  4. 2
      templates/.env-sample
  5. 4
      templates/torrc-apps-3-sample

25
apps/lnmarkets/docker-compose.yml

@ -0,0 +1,25 @@
version: '3.7'
services:
lnmarkets:
image: ghcr.io/lnmarkets/umbrel:v1.0.0@sha256:e7bfe4ae840bfddc0af398a9bc700044778d1090a7a56389265116d23dc13cab
user: 1000:1000
init: true
restart: on-failure
stop_grace_period: 1m
ports:
- "$APP_LNMARKETS_PORT:$APP_LNMARKETS_PORT"
volumes:
- ${LND_DATA_DIR}:/lnd:ro
environment:
APP_URL: 0.0.0.0
API_PORT: $APP_LNMARKETS_PORT
LND_IP: $LND_IP
LND_GRPC_PORT: $LND_GRPC_PORT
LND_REST_PORT: $LND_REST_PORT
BITCOIN_NETWORK: $BITCOIN_NETWORK
networks:
default:
ipv4_address: $APP_LNMARKETS_IP

25
apps/registry.json

@ -569,5 +569,28 @@
],
"path": "",
"defaultPassword": ""
},
{
"id": "lnmarkets",
"category": "Finance",
"name": "LN Markets",
"version": "1.0.0",
"tagline": "Trade Bitcoin derivatives on Lightning",
"description": "LN Markets is the first Lightning-native Bitcoin derivatives trading platform.\n\nLN Markets enables traders to take minimal counterparty risk: you can trade directly from your Lightning wallet for instant and almost costless transactions. Since March 2020, we have processed over $200 million of trading volume, with a median fee of 1 sat for instant P&L delivery to your wallet.\n\nThis Umbrel App gives you another way to interact with LN Markets: you can directly deposit, withdraw, get trading stats and get instantly connected to your account to take positions as usual. More features may come in the future!\n\nThank you for your support and let’s keep building the future of finance together!",
"developer": "LN Markets",
"website": "https://lnmarkets.com",
"dependencies": [
"lnd"
],
"repo": "https://github.com/lnmarkets/umbrel",
"support": "https://www.t.me/lnmarkets",
"port": 4242,
"gallery": [
"1.jpg",
"2.jpg",
"3.jpg"
],
"path": "",
"defaultPassword": ""
}
]
]

4
scripts/configure

@ -207,6 +207,8 @@ APP_KRYSTAL_BULL_PORT="3010"
APP_KRYSTAL_BULL_SERVER_IP="10.21.21.57"
APP_NODE_RED_IP="10.21.21.55"
APP_NODE_RED_PORT="1880"
APP_LNMARKETS_IP="10.21.21.58"
APP_LNMARKETS_PORT="4242"
# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
@ -411,6 +413,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-krystal-bull-server-ip>/${APP_KRYSTAL_BULL_SERVER_IP}/g" "${template}"
sed -i "s/<app-node-red-ip>/${APP_NODE_RED_IP}/g" "${template}"
sed -i "s/<app-node-red-port>/${APP_NODE_RED_PORT}/g" "${template}"
sed -i "s/<app-lnmarkets-ip>/${APP_LNMARKETS_IP}/g" "${template}"
sed -i "s/<app-lnmarkets-port>/${APP_LNMARKETS_PORT}/g" "${template}"
done
##########################################################

2
templates/.env-sample

@ -101,3 +101,5 @@ APP_KRYSTAL_BULL_PORT=<app-krystal-bull-port>
APP_KRYSTAL_BULL_SERVER_IP=<app-krystal-bull-server-ip>
APP_NODE_RED_IP=<app-node-red-ip>
APP_NODE_RED_PORT=<app-node-red-port>
APP_LNMARKETS_IP=<app-lnmarkets-ip>
APP_LNMARKETS_PORT=<app-lnmarkets-port>

4
templates/torrc-apps-3-sample

@ -28,3 +28,7 @@ HiddenServicePort 80 <app-krystal-bull-ip>:3001
# node-red Hidden Service
HiddenServiceDir /var/lib/tor/app-node-red
HiddenServicePort 80 <app-node-red-ip>:<app-node-red-port>
# lnmarkets Hidden Service
HiddenServiceDir /var/lib/tor/app-lnmarkets
HiddenServicePort 80 <app-lnmarkets-ip>:<app-lnmarkets-port>

Loading…
Cancel
Save