Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit 1a640f9

Browse files
committed
feat: new websockets channels for umbrel app
1 parent 108381f commit 1a640f9

File tree

18 files changed

+919
-1054
lines changed

18 files changed

+919
-1054
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM node:16.15.0-alpine3.14 AS builder
1+
FROM node:18.15.0-alpine3.16 AS builder
22

33
WORKDIR /usr/lnmarkets
44

5-
RUN npm install -g pnpm@7
5+
RUN npm install -g pnpm@8
66

77
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
88

@@ -16,7 +16,7 @@ COPY apps/front /usr/lnmarkets/apps/front
1616

1717
RUN pnpm -C apps/front build
1818

19-
FROM node:16.15.0-alpine3.14
19+
FROM node:18.15.0-alpine3.16
2020

2121
ENV NODE_ENV="production"
2222

apps/api/docker/Dockerfile.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM node:16.15.0-alpine3.14
1+
FROM node:18.15.0-alpine3.16
22

33
WORKDIR /usr/src
44

5-
RUN npm install -g pnpm@7
5+
RUN npm install -g pnpm@8
66

77
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
88
COPY apps/api/package.json apps/api/package.json

apps/api/src/websockets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export default async (server) => {
2929
await lnm.connect()
3030
await lnm.subscribe({
3131
params: [
32-
'futures/market/index',
33-
'futures/market/bid-offer',
32+
'futures/btc_usd/index',
33+
'futures/btc_usd/lastPrice',
3434
'options/market/volatility',
3535
],
3636
})

apps/front/docker/Dockerfile.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM node:16.15.0-alpine3.14
1+
FROM node:18.15.0-alpine3.16
22

33
WORKDIR /usr/src
44

5-
RUN npm install -g pnpm@7
5+
RUN npm install -g pnpm@8
66

77
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
88
COPY apps/front/package.json apps/front/package.json

docker-compose.yml renamed to compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.7"
2-
31
services:
42
lnmarkets:
53
image: ghcr.io/ln-markets/umbrel:v1.1.5@sha256:7ef171d3e76d99706d2077b3f27b115a1dbff150b339378692d90ebe06f7761a
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
COMPOSE_PROJECT_NAME=lnmarkets_umbrel_local
21
COMPOSE_DOCKER_CLI_BUILD=1
32
DOCKER_BUILDKIT=1
3+
COMPOSE_HTTP_TIMEOUT=120
Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
version: '3.7'
1+
name: lnmarkets-umbrel
22

33
x-logging: &default-logging
44
driver: 'json-file'
55
options:
66
max-size: '5m'
77
max-file: '10'
88
tag: '{{.Name}}'
9-
109
networks:
1110
lnmarkets_backend:
1211
external: true
@@ -19,53 +18,50 @@ volumes:
1918

2019
services:
2120
api:
22-
container_name: lnmarkets_umbrel_local_api
2321
restart: 'on-failure'
2422
build:
25-
context: ../..
23+
context: ..
2624
dockerfile: ./apps/api/docker/Dockerfile.dev
2725
ports:
2826
- 8001:4242
2927
environment:
3028
- NODE_ENV=development
3129
- LND_IP=lnd-user
32-
- LNMARKETS_API_HOSTNAME=api.kibotrel.lnmarkets.dev
30+
- LNMARKETS_API_HOSTNAME=api.afa.lnmarkets.dev
3331
- BITCOIN_NETWORK=regtest
3432
- APP_PASSWORD=lnmarkets
3533
volumes:
36-
- ${PWD}/../../apps/api/src:/usr/src/apps/api/src:cached
37-
- lnmarkets_lnd-user:/lnd/:ro
34+
- ../apps/api/src:/usr/src/apps/api/src
35+
- lnmarkets_lnd-user:/lnd:ro
3836
networks:
3937
- lnmarkets_backend
4038
- lnmarkets_reverse-proxy
4139
logging: *default-logging
4240

4341
front:
44-
container_name: lnmarkets_umbrel_local_front
4542
restart: 'on-failure'
4643
build:
47-
context: ../..
44+
context: ..
4845
dockerfile: ./apps/front/docker/Dockerfile.dev
4946
ports:
5047
- 3000:3000
5148
volumes:
52-
- ${PWD}/../../apps/front/src:/usr/src/apps/front/src
53-
- ${PWD}/../../apps/front/public:/usr/src/apps/front/public
54-
- ${PWD}/../../apps/front/postcss.config.js:/usr/src/apps/front/postcss.config.js
55-
- ${PWD}/../../apps/front/tailwind.config.js:/usr/src/apps/front/tailwind.config.js
56-
- ${PWD}/../../apps/front/vite.config.js:/usr/src/apps/front/vite.config.js
57-
- ${PWD}/../../apps/front/index.html:/usr/src/apps/front/index.html
49+
- ../apps/front/src:/usr/src/apps/front/src
50+
- ../apps/front/public:/usr/src/apps/front/public
51+
- ../apps/front/postcss.config.js:/usr/src/apps/front/postcss.config.js
52+
- ../apps/front/tailwind.config.js:/usr/src/apps/front/tailwind.config.js
53+
- ../apps/front/vite.config.js:/usr/src/apps/front/vite.config.js
54+
- ../apps/front/index.html:/usr/src/apps/front/index.html
5855
environment:
5956
- NODE_ENV=development
6057
logging: *default-logging
6158

6259
# This service is used to test the production container
6360
# We run as root to avoid permissions issues in the lnd volume
6461
app:
65-
container_name: lnmarkets_umbrel_local
6662
restart: 'on-failure'
6763
build:
68-
context: ../..
64+
context: ..
6965
dockerfile: ./Dockerfile
7066
user: root
7167
ports:
@@ -76,7 +72,7 @@ services:
7672
- BITCOIN_NETWORK=regtest
7773
- APP_PASSWORD=lnmarkets
7874
volumes:
79-
- lnmarkets_lnd-user:/lnd/:ro
75+
- lnmarkets_lnd-user:/lnd:ro
8076
networks:
8177
- lnmarkets_backend
8278
- lnmarkets_reverse-proxy

dev/local/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

dev/local/scripts/start.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

dev/local/scripts/stop.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)