-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd764dd
commit 3fad5d1
Showing
10 changed files
with
1,197 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
|
||
# Shkeeper Helm Chart and Docker Compose | ||
|
||
A Helm chart and Docker Compose configuration for deploying blockchain-based services with Shkeeper. | ||
|
||
## Features | ||
- Support for multiple blockchain integrations (BTC, LTC, DOGE, etc.). | ||
- Flexible configuration using `values.yaml`. | ||
- Optional support for full nodes and Shkeeper API layers. | ||
|
||
--- | ||
|
||
## Requirements | ||
|
||
- **Helm 3.x or higher**: [Installation Guide](https://helm.sh/docs/intro/install/) | ||
- **Docker and Docker Compose**: [Docker Installation](https://docs.docker.com/get-docker/) | ||
|
||
--- | ||
|
||
## Getting Started | ||
|
||
### 1. Clone the Repository | ||
|
||
```bash | ||
git clone https://github.com/yourusername/shkeeper-repo.git | ||
cd shkeeper-repo | ||
``` | ||
|
||
--- | ||
|
||
|
||
#### Configure `values.yaml` | ||
|
||
Edit the `values.yaml` file to configure the services based on your requirements. Example: | ||
|
||
```yaml | ||
btc: | ||
enabled: true | ||
mainnet: true | ||
bitcoind: | ||
image: vsyshost/bitcoind:27.0 | ||
|
||
ltc: | ||
enabled: true | ||
mainnet: true | ||
``` | ||
### 2. Helm render docker-compose file | ||
#### Render docker compose | ||
```bash | ||
helm template shkeeper > docker-compose.yml | ||
``` | ||
|
||
### 3. Start services | ||
|
||
|
||
|
||
1. In the docker-compose.yaml file, set the login and password parameters for the services | ||
|
||
2. Start the services with Docker Compose: | ||
|
||
```bash | ||
docker-compose up -d | ||
``` | ||
|
||
3. Verify the running containers: | ||
|
||
```bash | ||
docker ps | ||
``` | ||
4. The shkeeper application will be launched on port 5000 | ||
|
||
--- | ||
|
||
## Configuration | ||
|
||
### Helm Parameters | ||
|
||
The following table lists the configurable parameters in `values.yaml`: | ||
|
||
| Parameter | Description | Default | | ||
|-------------------------|-------------------------------------------|---------------| | ||
| `btc.enabled` | Enable BTC blockchain support | `true` | | ||
| `ltc.enabled` | Enable LTC blockchain support | `false` | | ||
| `monero.enabled` | Enable Monero blockchain support | `true` | | ||
| `doge.enabled` | Enable Doge blockchain support | `true` | | ||
|
||
|
||
For a full list, refer to the `values.yaml` file. | ||
|
||
--- | ||
|
||
## Supported Blockchains | ||
|
||
- **Bitcoin (BTC)** | ||
- **Litecoin (LTC)** | ||
- **Dogecoin (DOGE)** | ||
- **Monero (XMR)** | ||
- **Tron (TRX, USDT, USDC)** | ||
- **Ethereum (ETH, USDT, USDC)** | ||
- **Binance Smart Chain (BNB, USDT, USDC)** | ||
- **Polygon (MATIC, USDT, USDC)** | ||
- **Avalanche (AVAX, USDT, USDC)** | ||
- **Ripple (XRP)** | ||
|
||
--- | ||
|
||
|
||
|
||
## Contact | ||
|
||
For support or inquiries, please open an issue on GitHub or contact us at [[email protected]](mailto:[email protected]). | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE DATABASE IF NOT EXISTS `shkeeper`; | ||
CREATE DATABASE IF NOT EXISTS `ethereum-shkeeper`; | ||
CREATE DATABASE IF NOT EXISTS `bnb-shkeeper`; | ||
CREATE DATABASE IF NOT EXISTS `xrp-shkeeper`; | ||
CREATE DATABASE IF NOT EXISTS `polygon-shkeeper`; | ||
CREATE DATABASE IF NOT EXISTS `avalanche-shkeeper`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
server { | ||
listen 80; | ||
|
||
if ($${HTTP_X}${SHKEEPER_BACKEND_KEY} != ${SHKEEPER_BACKEND_KEY}) { return 403 "Bad key!\n"; } | ||
|
||
location / { | ||
root /backup; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
user root; | ||
worker_processes auto; | ||
|
||
error_log /var/log/nginx/error.log notice; | ||
pid /var/run/nginx.pid; | ||
|
||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
#tcp_nopush on; | ||
|
||
keepalive_timeout 65; | ||
|
||
#gzip on; | ||
|
||
include /etc/nginx/conf.d/*.conf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[server] | ||
port_rpc_admin_local | ||
port_http | ||
|
||
[port_rpc_admin_local] | ||
port = 5005 | ||
ip = 127.0.0.1 | ||
admin = 127.0.0.1 | ||
protocol = http | ||
|
||
[port_http] | ||
port = 51234 | ||
ip = 0.0.0.0 | ||
protocol = http | ||
|
||
[node_size] | ||
small | ||
|
||
[node_db] | ||
type=NuDB | ||
path=/var/lib/rippled/db/nudb | ||
advisory_delete=0 | ||
|
||
# How many ledgers do we want to keep (history)? | ||
# Integer value that defines the number of ledgers | ||
# between online deletion events | ||
online_delete=25600 | ||
|
||
[ledger_history] | ||
# How many ledgers do we want to keep (history)? | ||
# Integer value (ledger count) | ||
# or (if you have lots of TB SSD storage): 'full' | ||
25600 | ||
|
||
[database_path] | ||
/var/lib/rippled/db | ||
|
||
[debug_logfile] | ||
/var/log/rippled/debug.log | ||
|
||
[sntp_servers] | ||
time.windows.com | ||
time.apple.com | ||
time.nist.gov | ||
pool.ntp.org | ||
|
||
[ips] | ||
r.ripple.com 51235 | ||
|
||
[validators_file] | ||
validators.txt | ||
|
||
[rpc_startup] | ||
{ "command": "log_level", "severity": "info" } | ||
|
||
# severity (order: lots of information .. only errors) | ||
# debug | ||
# info | ||
# warn | ||
# error | ||
# fatal | ||
|
||
[ssl_verify] | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[validator_list_sites] | ||
https://vl.ripple.com | ||
https://vl.xrplf.org | ||
|
||
[validator_list_keys] | ||
#vl.ripple.com | ||
ED2677ABFFD1B33AC6FBC3062B71F1E8397C1505E1C42C64D11AD1B28FF73F4734 | ||
# vl.xrplf.org | ||
ED45D1840EE724BE327ABE9146503D5848EFD5F38B6D5FEDE71E80ACCE5E6E738B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v2 | ||
name: docker-compose-generator | ||
description: A Helm chart to generate a docker-compose.yml | ||
version: 0.1.0 |
Oops, something went wrong.