Update BTCPay

This commit is contained in:
Aaron Dewes 2022-08-21 17:29:33 +02:00
commit 6ed7bd64db
7 changed files with 87 additions and 17 deletions

View File

@ -4,7 +4,7 @@ version: 3
metadata: metadata:
category: Payments category: Payments
name: BitcartCC name: BitcartCC
version: 0.6.5.1 version: 0.6.9.1
tagline: BitcartCC is a self-hosted payment processor and developer solutions tagline: BitcartCC is a self-hosted payment processor and developer solutions
platform for cryptocurrencies platform for cryptocurrencies
description: BitcartCC provides light-weight, but secure and easy-to-use description: BitcartCC provides light-weight, but secure and easy-to-use
@ -17,6 +17,9 @@ metadata:
- 1.png - 1.png
- 2.png - 2.png
- 3.png - 3.png
dependencies:
- electrum
path: /help/
containers: containers:
- name: admin - name: admin
restart: unless-stopped restart: unless-stopped
@ -24,7 +27,11 @@ containers:
command: yarn start command: yarn start
environment: environment:
BITCART_ADMIN_LOG_FILE: bitcart.log BITCART_ADMIN_LOG_FILE: bitcart.log
BITCART_ADMIN_API_URL: http://$APP_BITCARTCC_BACKEND_IP:8000 BITCART_ADMIN_API_URL: http://$APP_DOMAIN:$APP_BITCARTCC_MAIN_PORT/api
BITCART_ADMIN_ROOTPATH: /admin
BITCART_ADMIN_SOCKS_PROXY: socks5h://$TOR_PROXY_IP:$TOR_PROXY_PORT
BITCART_ADMIN_ONION_API_URL: http://$APP_HIDDEN_SERVICE/api
BITCART_ADMIN_ONION_HOST: http://$APP_HIDDEN_SERVICE
- name: backend - name: backend
depends_on: depends_on:
- bitcoin - bitcoin
@ -32,36 +39,41 @@ containers:
- redis - redis
restart: unless-stopped restart: unless-stopped
image: bitcartcc/bitcart:stable image: bitcartcc/bitcart:stable
entrypoint: /usr/local/bin/docker-entrypoint.sh
command: bash -c "alembic upgrade head && gunicorn -c gunicorn.conf.py main:app" command: bash -c "alembic upgrade head && gunicorn -c gunicorn.conf.py main:app"
environment: environment:
IN_DOCKER: false IN_DOCKER: false
LOG_FILE: bitcart.log LOG_FILE: bitcart.log
BITCART_DATADIR: /datadir BITCART_DATADIR: /datadir
BITCART_BACKUPS_DIR: /backups
BITCART_VOLUMES: /datadir /backups
BTC_NETWORK: $BITCOIN_NETWORK BTC_NETWORK: $BITCOIN_NETWORK
BTC_LIGHTNING: true BTC_LIGHTNING: true
REDIS_HOST: redis://$APP_BITCARTCC_REDIS_IP REDIS_HOST: redis://$APP_BITCARTCC_REDIS_IP
DB_HOST: $APP_BITCARTCC_DATABASE_IP DB_HOST: $APP_BITCARTCC_DATABASE_IP
user: 1000:1000 BTC_HOST: $APP_BITCARTCC_BITCOIN_IP
BITCART_BACKEND_ROOTPATH: /api
data: data:
- data/bitcart:/datadir - data/bitcart:/datadir
- data/backups:/backups
- name: bitcoin - name: bitcoin
restart: unless-stopped restart: unless-stopped
image: bitcartcc/bitcart-btc:stable image: bitcartcc/bitcart-btc:stable
environment: environment:
BTC_HOST: $APP_BITCARTCC_BITCOIN_IP
BTC_NETWORK: $BITCOIN_NETWORK BTC_NETWORK: $BITCOIN_NETWORK
BTC_LIGHTNING: true BTC_LIGHTNING: true
IN_DOCKER: false BTC_SERVER: $ELECTRUM_IP:$ELECTRUM_PORT:t
data: data:
- data/bitcoin:/data - data/bitcoin:/data
- name: database - name: database
restart: unless-stopped restart: unless-stopped
image: postgres:12-alpine image: ghcr.io/runcitadel/postgres:main@sha256:8f25afe966a63fd3f11a1052e73f30b9de5ddc0876bebaaf944d485374c73c01
environment: environment:
POSTGRES_DB: bitcart POSTGRES_DB: bitcart
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
data: data:
- data/postgres:/var/lib/postgresql/data - data/postgres:/var/lib/postgresql/data
user: 1000:1000
- name: redis - name: redis
restart: unless-stopped restart: unless-stopped
image: redis:alpine image: redis:alpine
@ -70,28 +82,35 @@ containers:
image: bitcartcc/bitcart-store:stable image: bitcartcc/bitcart-store:stable
command: yarn start command: yarn start
environment: environment:
BITCART_STORE_API_URL: http://$APP_BITCARTCC_BACKEND_IP:8000 BITCART_STORE_API_URL: http://$APP_DOMAIN:$APP_BITCARTCC_MAIN_PORT/api
BITCART_STORE_SOCKS_PROXY: socks5h://$TOR_PROXY_IP:$TOR_PROXY_PORT
BITCART_STORE_ONION_API_URL: http://$APP_HIDDEN_SERVICE/api
BITCART_STORE_ONION_HOST: http://$APP_HIDDEN_SERVICE
user: 1000:1000
- name: worker - name: worker
depends_on: depends_on:
- backend - backend
restart: unless-stopped restart: unless-stopped
image: bitcartcc/bitcart:stable image: bitcartcc/bitcart:stable
entrypoint: /usr/local/bin/docker-entrypoint.sh
command: python3 worker.py command: python3 worker.py
environment: environment:
IN_DOCKER: false IN_DOCKER: false
LOG_FILE: bitcart.log LOG_FILE: bitcart.log
BITCART_DATADIR: /datadir BITCART_DATADIR: /datadir
BITCART_BACKUPS_DIR: /backups
BITCART_VOLUMES: /datadir /backups
BTC_NETWORK: $BITCOIN_NETWORK BTC_NETWORK: $BITCOIN_NETWORK
BTC_LIGHTNING: true BTC_LIGHTNING: true
REDIS_HOST: redis://$APP_BITCARTCC_REDIS_IP REDIS_HOST: redis://$APP_BITCARTCC_REDIS_IP
DB_HOST: $APP_BITCARTCC_DATABASE_IP DB_HOST: $APP_BITCARTCC_DATABASE_IP
user: 1000:1000 BTC_HOST: $APP_BITCARTCC_BITCOIN_IP
data: data:
- data/bitcart:/datadir - data/bitcart:/datadir
- data/backups:/backups
- image: nginx:1.21.3-alpine@sha256:1ff1364a1c4332341fc0a854820f1d50e90e11bb0b93eb53b47dc5e10c680116 - image: nginx:1.21.3-alpine@sha256:1ff1364a1c4332341fc0a854820f1d50e90e11bb0b93eb53b47dc5e10c680116
init: true init: true
port: 80 port: 80
name: main name: main
data: data:
- nginx/nginx.conf:/etc/nginx/nginx.conf - nginx/nginx.conf:/etc/nginx/nginx.conf
- nginx/html:/usr/share/nginx/html/help

View File

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>BitcartCC</title>
<link rel="stylesheet" type="text/css" href="pico.min.css" />
</head>
<body>
<main class="container container-fluid">
<h1>Welcome to BitcartCC!</h1>
<ul>
<li><a href="/">Access your store</a></li>
<li><a href="/admin">Access your admin panel</a></li>
<li><a href="/api/">Merchants API</a></li>
<li>
<a target="_blank" rel="noopener noreferrer"
href="https://docs.bitcartcc.com/bitcartcc-basics/walkthrough">BitcartCC Walkthrough</a>
</li>
</ul>
</main>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -19,6 +19,24 @@ http {
default_type application/octet-stream; default_type application/octet-stream;
# If we receive Upgrade, set Connection to "upgrade"; otherwise, delete any
# Connection header that may have been passed to this server
map $http_upgrade $proxy_connection {
default upgrade;
'' close;
}
# Apply fix for very long server names
server_names_hash_bucket_size 128;
# Prevent Nginx Information Disclosure
server_tokens off;
gzip on;
gzip_min_length 1000;
gzip_types image/svg+xml text/plain text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
server { server {
listen 80; listen 80;
@ -30,11 +48,14 @@ http {
proxy_pass http://admin:4000; proxy_pass http://admin:4000;
} }
location /help {
include /etc/nginx/mime.types;
root /usr/share/nginx/html;
index index.html;
}
location / { location / {
proxy_pass http://store:3000/; proxy_pass http://store:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
} }
} }
} }

View File

@ -9,7 +9,7 @@ citadel_version: 4
metadata: metadata:
category: Payments category: Payments
name: BTCPay Server name: BTCPay Server
version: 1.6.8 version: 1.6.9
tagline: Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin tagline: Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin
payment processor. payment processor.
description: "BTCPay Server is a free and open-source Bitcoin payment processor description: "BTCPay Server is a free and open-source Bitcoin payment processor
@ -37,7 +37,7 @@ metadata:
services: services:
main: main:
port: 3000 port: 3000
image: btcpayserver/btcpayserver:1.6.8@sha256:d01cd5c43541d9a502e284452d4767d4bd2211dd0d6af0949e872a7c04a06eb5 image: btcpayserver/btcpayserver:1.6.9@sha256:1162bb6231cbdf0a8297107951afe8a44c60a86814d07454f24b4ccf05ba1f71
depends_on: depends_on:
- nbxplorer - nbxplorer
- postgres - postgres

View File

@ -40,7 +40,7 @@ containers:
LNBITS_DEFAULT_WALLET_NAME: LNbits wallet LNBITS_DEFAULT_WALLET_NAME: LNbits wallet
LNBITS_DISABLED_EXTENSIONS: amilk LNBITS_DISABLED_EXTENSIONS: amilk
LNBITS_ADMIN_LOGIN_KEY: $APP_SEED LNBITS_ADMIN_LOGIN_KEY: $APP_SEED
LNBITS_ADMIN_EXTENSIONS: ngrok LNBITS_ADMIN_EXTENSIONS: ngrok,admin
name: main-lnd name: main-lnd
data: data:
- data:/data - data:/data
@ -61,7 +61,7 @@ containers:
LNBITS_DEFAULT_WALLET_NAME: LNbits wallet LNBITS_DEFAULT_WALLET_NAME: LNbits wallet
LNBITS_DISABLED_EXTENSIONS: amilk LNBITS_DISABLED_EXTENSIONS: amilk
LNBITS_ADMIN_LOGIN_KEY: $APP_SEED LNBITS_ADMIN_LOGIN_KEY: $APP_SEED
LNBITS_ADMIN_EXTENSIONS: ngrok LNBITS_ADMIN_EXTENSIONS: ngrok,admin
name: main-c-lightning name: main-c-lightning
data: data:
- data:/data - data:/data