diff --git a/apps/kollider/docker-compose.yml b/apps/kollider/docker-compose.yml new file mode 100644 index 0000000..9a9248f --- /dev/null +++ b/apps/kollider/docker-compose.yml @@ -0,0 +1,44 @@ +version: "3.7" + +services: + backend: + image: kolliderhq/kollider-lite-backend:v1.0.0@sha256:50556ad9c14b39f327f270499c6188b15c036c4c7865346c2c26198b3e6eabb0 + init: true + user: 1000:1000 + restart: on-failure + stop_grace_period: 1m + volumes: + - ${LND_DATA_DIR}:/lnd:ro + environment: + LND_IP: $LND_IP + networks: + default: + ipv4_address: $APP_KOLLIDER_HH_IP + ws: + image: kolliderhq/kollider-ws-client:v1.0.0@sha256:ec37e3c75d62cf197e1a28031bcf0ebf62f7bd815181c8414ad27a8b1db9e942 + init: true + user: 1000:1000 + restart: on-failure + stop_grace_period: 1m + ports: + - "$APP_KOLLIDER_WS_PORT:8080" + environment: + APP_PASSWORD: $APP_PASSWORD + KOLLIDER_ZMQ_ADDRESS: "tcp://${APP_KOLLIDER_HH_IP}:5556" + KOLLIDER_ZMQ_SUB_ADDRESS: "tcp://${APP_KOLLIDER_HH_IP}:5557" + KOLLIDER_ZMQ_HEDGER_ADDRESS: "tcp://${APP_KOLLIDER_HH_IP}:5558" + KOLLIDER_ZMQ_HEDGER_SUB_ADDRESS: "tcp://${APP_KOLLIDER_HH_IP}:5559" + networks: + default: + ipv4_address: $APP_KOLLIDER_WS_IP + web: + image: kolliderhq/kollider-lite-app:v1.0.0@sha256:b930aa6e519b78b5db69915300796807ac09b7356f9b099b7630585aed47d0b5 + init: true + user: 1000:1000 + restart: on-failure + stop_grace_period: 1m + ports: + - "$APP_KOLLIDER_PORT:3000" + networks: + default: + ipv4_address: $APP_KOLLIDER_IP diff --git a/apps/registry.json b/apps/registry.json index 315b883..9bc3c28 100644 --- a/apps/registry.json +++ b/apps/registry.json @@ -776,5 +776,29 @@ ], "path": "/admin", "deterministicPassword": true + }, + { + "id": "kollider", + "category": "Finance", + "name": "Kollider", + "version": "1.0.0", + "tagline": "Lightning-fast derivative trading", + "description": "Kollider lets you instantly trade perpetual contracts with low fees and up to 100x buying power.\n\nNo need to pre-fund a trading account, each trade settles directly from your own wallet or even from your own lightning node in milliseconds.\n\nThe Kollider Umbrel App lets you use the Lightning Network to get instant exposure to a range of products using Bitcoin, directly from your Umbrel node.\n\nMore features coming soon!", + "developer": "Kollider", + "website": "https://kollider.xyz", + "dependencies": [ + "lnd" + ], + "repo": "https://github.com/kolliderhq/kollider-lite-app", + "support": "https://t.me/kolliderhq", + "port": 4243, + "gallery": [ + "1.jpg", + "2.jpg", + "3.jpg" + ], + "path": "", + "deterministicPassword": true, + "torOnly": false } ] diff --git a/scripts/configure b/scripts/configure index 0cacd40..d8806a3 100755 --- a/scripts/configure +++ b/scripts/configure @@ -223,6 +223,11 @@ APP_BITFEED_IP="10.21.21.68" APP_BITFEED_PORT="8314" APP_BITFEED_API_IP="10.21.21.69" APP_BITFEED_API_PORT="8315" +APP_KOLLIDER_IP="10.21.21.70" +APP_KOLLIDER_PORT="4243" +APP_KOLLIDER_WS_IP="10.21.21.71" +APP_KOLLIDER_WS_PORT="4244" +APP_KOLLIDER_HH_IP="10.21.21.72" # Generate RPC credentials @@ -449,6 +454,11 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" " sed -i "s//${APP_BITFEED_PORT}/g" "${template}" sed -i "s//${APP_BITFEED_API_IP}/g" "${template}" sed -i "s//${APP_BITFEED_API_PORT}/g" "${template}" + sed -i "s//${APP_KOLLIDER_IP}/g" "${template}" + sed -i "s//${APP_KOLLIDER_PORT}/g" "${template}" + sed -i "s//${APP_KOLLIDER_WS_IP}/g" "${template}" + sed -i "s//${APP_KOLLIDER_WS_PORT}/g" "${template}" + sed -i "s//${APP_KOLLIDER_HH_IP}/g" "${template}" done ########################################################## diff --git a/templates/.env-sample b/templates/.env-sample index 8d0f5d2..c4d32e7 100644 --- a/templates/.env-sample +++ b/templates/.env-sample @@ -123,3 +123,8 @@ APP_BITFEED_IP= APP_BITFEED_PORT= APP_BITFEED_API_IP= APP_BITFEED_API_PORT= +APP_KOLLIDER_IP= +APP_KOLLIDER_PORT= +APP_KOLLIDER_WS_IP= +APP_KOLLIDER_WS_PORT= +APP_KOLLIDER_HH_IP= diff --git a/templates/torrc-server-sample b/templates/torrc-server-sample index fe3e604..9a300bb 100644 --- a/templates/torrc-server-sample +++ b/templates/torrc-server-sample @@ -180,3 +180,8 @@ HiddenServicePort 80 :5000 # bitfeed Hidden Service HiddenServiceDir /data/app-bitfeed HiddenServicePort 80 :80 + +# kollider Hidden Service +HiddenServiceDir /data/app-kollider +HiddenServicePort 80 :3000 +HiddenServicePort 4244 :8080