Make more apps FOSS

Rewrite of BtcPay server and BTC-RPC-Explorer
This commit is contained in:
Aaron Dewes 2021-12-23 13:27:47 +01:00
parent 57ac5ae4d2
commit e396a5b2c4
7 changed files with 170 additions and 0 deletions

View File

@ -0,0 +1,52 @@
# SPDX-FileCopyrightText: 2021 Citadel and contributors
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# yaml-language-server: $schema=../../app-standard-v1.json
version: 1
metadata:
category: Explorers
name: BTC RPC Explorer
version: 3.3.0
tagline: Database-free, self-hosted Bitcoin explorer
description: >-
This is a self-hosted explorer for the Bitcoin blockchain, driven by RPC calls to your own Bitcoin node. It is easy to run and can be connected to other tools (like Electrum servers) to achieve a full-featured explorer.
Whatever reasons you may have for running a full node (trustlessness, technical curiosity, supporting the network, etc) it's valuable to appreciate the fullness of your node. With this explorer, you can explore not just the blockchain database, but also explore all of the functional capabilities of your own node.
developer: Dan Janosik
website: https://explorer.btc21.org
dependencies:
- electrum
- bitcoind
repo: https://github.com/janoside/btc-rpc-explorer
support: https://github.com/janoside/btc-rpc-explorer/discussions
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
defaultPassword: $APP_SEED
containers:
- name: main
image: ghcr.io/runcitadel/btc-rpc-explorer:main@sha256:743a2f67035e41901b3d1f65f9f654525d00312d1d7d15f5be19a2768d33b416
permissions:
- electrum
- bitcoind
port: 3002
environment:
BTCEXP_HOST: 0.0.0.0
BTCEXP_BITCOIND_HOST: $BITCOIN_IP
BTCEXP_BITCOIND_PORT: $BITCOIN_RPC_PORT
BTCEXP_BITCOIND_USER: $BITCOIN_RPC_USER
BTCEXP_BITCOIND_PASS: $BITCOIN_RPC_PASS
BTCEXP_ADDRESS_API: electrum
BTCEXP_ELECTRUM_SERVERS: tcp://$ELECTRUM_IP:$ELECTRUM_PORT
DEBUG: btcexp:*,electrumClient
BTCEXP_SLOW_DEVICE_MODE: "true"
BTCEXP_NO_INMEMORY_RPC_CACHE: "true"
BTCEXP_PRIVACY_MODE: "true"
BTCEXP_NO_RATES: "true"
BTCEXP_RPC_ALLOWALL: "false"
BTCEXP_BASIC_AUTH_PASSWORD: $APP_SEED

View File

@ -0,0 +1,81 @@
# SPDX-FileCopyrightText: 2021 Citadel and contributors
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# yaml-language-server: $schema=../../app-standard-v1.json
version: 1
metadata:
category: Payments
name: BTCPay Server
version: 1.3.7
tagline: Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
description: >-
BTCPay Server is a free and open-source Bitcoin payment processor which allows you to accept bitcoin without fees or intermediaries.
developer: BTCPay Server Foundation
website: https://btcpayserver.org
dependencies:
- lnd
- bitcoind
repo: https://github.com/btcpayserver/btcpayserver
support: https://chat.btcpayserver.org
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
mainContainer: web
containers:
- name: nbxplorer
image: nicolasdorier/nbxplorer:2.2.18@sha256:2418ecdc331d070c51343abb98ec32252d410bb130361fd0e4d946b41b4a4949
user: 1000:1000
environment:
NBXPLORER_DATADIR: /data
NBXPLORER_NETWORK: $BITCOIN_NETWORK
NBXPLORER_PORT: 32838
NBXPLORER_BIND: 0.0.0.0
NBXPLORER_CHAINS: btc
NBXPLORER_SIGNALFILEDIR: /data
NBXPLORER_BTCRPCURL: http://$BITCOIN_IP:$BITCOIN_RPC_PORT
NBXPLORER_BTCNODEENDPOINT: $BITCOIN_IP:$BITCOIN_P2P_PORT
NBXPLORER_BTCRPCUSER: $BITCOIN_RPC_USER
NBXPLORER_BTCRPCPASSWORD: $BITCOIN_RPC_PASS
data:
- data/nbxplorer:/data
permissions:
- bitcoind
- name: web
image: btcpayserver/btcpayserver:1.3.7@sha256:0649db998e1997738c6866b9dbcaf86fd5b244308e01026f37c9a85d9ef370ed
port: 1234
depends_on:
- nbxplorer
- postgres
entrypoint:
- dotnet
- BTCPayServer.dll
environment:
HOME: /data
BTCPAY_DATADIR: /data
BTCPAY_PLUGINDIR: /data/plugins
BTCPAY_DOCKERDEPLOYMENT: "false"
BTCPAY_POSTGRES: User
ID=postgres;Host=$APP_BTCPAY_SERVER_POSTGRES_IP;Port=5432;Database=btcpayserver$BITCOIN_NETWORK
BTCPAY_NETWORK: $BITCOIN_NETWORK
BTCPAY_BIND: 0.0.0.0:1234
BTCPAY_CHAINS: btc
BTCPAY_BTCEXPLORERURL: http://$APP_BTCPAY_SERVER_NBXPLORER_IP:32838
BTCPAY_BTCLIGHTNING: type=lnd-rest;server=https://$LND_IP:$LND_REST_PORT/;macaroonfilepath=/lnd/data/chain/bitcoin/$BITCOIN_NETWORK/admin.macaroon;allowinsecure=true
BTCPAY_SOCKSENDPOINT: $TOR_PROXY_IP:$TOR_PROXY_PORT
data:
- data/nbxplorer:/data/.nbxplorer
- data/btcpay:/data
permissions:
- lnd
user: 1000:1000
- name: postgres
image: postgres:14.1-bullseye@sha256:1fe27b334443793af98d7eb320ad6f9f30fcc9bc068f545cb46ec01cefe9c8ee
user: 1000:1000
environment:
POSTGRES_HOST_AUTH_METHOD: trust
data:
- data/postgres:/var/lib/postgresql/data

View File

34
apps/code-server/app.yml Normal file
View File

@ -0,0 +1,34 @@
# SPDX-FileCopyrightText: 2021 Citadel and contributors
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# yaml-language-server: $schema=../../app-standard-v1.json
version: 1
metadata:
category: Development
name: code-server
version: 3.12.0
tagline: Run VS Code on your Citadel
description: >-
This app doesn't have a description yet.
developer: Coder
website: https://coder.com
dependencies: []
repo: https://github.com/cdr/code-server
support: https://github.com/cdr/code-server/discussions
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
defaultPassword: $APP_SEED
containers:
- name: server
image: codercom/code-server:3.12.0@sha256:44415390c118663dd58119ea4d3891ed32f1f56181144af671cf9c0de41d6132
user: 1000:1000
environment:
PASSWORD: $APP_SEED
data:
- data:/home/coder

View File

@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2021 Citadel and contributors
#
# SPDX-License-Identifier: AGPL-3.0-or-later