mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 04:54:18 +01:00
fulcrum: add ssl ports to docker setup
This commit is contained in:
32
fulcrum.md
32
fulcrum.md
@@ -18,7 +18,9 @@
|
|||||||
- [Create a Tor .onion service](#create-a-tor-onion-service)
|
- [Create a Tor .onion service](#create-a-tor-onion-service)
|
||||||
- [Remove the Fulcrum user and installation (not the database)](#remove-the-fulcrum-user-and-installation-not-the-database)
|
- [Remove the Fulcrum user and installation (not the database)](#remove-the-fulcrum-user-and-installation-not-the-database)
|
||||||
- [Docker setup](#docker-setup)
|
- [Docker setup](#docker-setup)
|
||||||
|
- [Generate TLS credentials](#generate-tls-credentials)
|
||||||
- [Start the image](#start-the-image)
|
- [Start the image](#start-the-image)
|
||||||
|
- [Docker compose snippet](#docker-compose-snippet)
|
||||||
- [Sources:](#sources)
|
- [Sources:](#sources)
|
||||||
|
|
||||||
This is a rough overview, the guide is a work in progress.
|
This is a rough overview, the guide is a work in progress.
|
||||||
@@ -346,7 +348,7 @@ sudo ufw deny 50022
|
|||||||
# sudo rm -rf /mnt/hdd/app-storage/fulcrum/db
|
# sudo rm -rf /mnt/hdd/app-storage/fulcrum/db
|
||||||
```
|
```
|
||||||
## Docker setup
|
## Docker setup
|
||||||
The database persisted and serving on port 50025.
|
The database persisted and serving on ports tcp: 50025, ssl: 50027.
|
||||||
|
|
||||||
Will mount the existing database from (can be any directory to sync new in < 10h on an SSD):
|
Will mount the existing database from (can be any directory to sync new in < 10h on an SSD):
|
||||||
```
|
```
|
||||||
@@ -368,21 +370,47 @@ fast-sync = 1024
|
|||||||
peering = false
|
peering = false
|
||||||
announce = false
|
announce = false
|
||||||
tcp = 0.0.0.0:50025
|
tcp = 0.0.0.0:50025
|
||||||
|
ssl = 0.0.0.0:50027
|
||||||
|
```
|
||||||
|
|
||||||
|
### Generate TLS credentials
|
||||||
|
```
|
||||||
|
openssl req -newkey rsa:2048 -sha256 -nodes -x509 -days 3650 -subj "/O=Fulcrum" -keyout "tls.key" -out "tls.cert"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Start the image
|
### Start the image
|
||||||
adapt the values as needed
|
adapt the values as needed
|
||||||
```
|
```
|
||||||
docker image pull openoms/fulcrum:latest
|
docker image pull cculianu/fulcrum:latest
|
||||||
docker run \
|
docker run \
|
||||||
--network="host" \
|
--network="host" \
|
||||||
-p 50025:50025 \
|
-p 50025:50025 \
|
||||||
|
-p 50027:50027 \
|
||||||
-v "$(pwd)"/fulcrum.conf:/fulcrum.conf \
|
-v "$(pwd)"/fulcrum.conf:/fulcrum.conf \
|
||||||
|
-v "$(pwd)"/tls.key:/tls.key \
|
||||||
|
-v "$(pwd)"/tls.cert:/tls.cert \
|
||||||
-v /mnt/hdd/hdd-snapshot-clone/app-storage/fulcrum/db:/db \
|
-v /mnt/hdd/hdd-snapshot-clone/app-storage/fulcrum/db:/db \
|
||||||
-e DATA_DIR=/db \
|
-e DATA_DIR=/db \
|
||||||
|
-e SSL_CERTFILE=/tls.cert \
|
||||||
|
-e SSL_KEYFILE=/tls.key \
|
||||||
openoms/fulcrum \
|
openoms/fulcrum \
|
||||||
Fulcrum /fulcrum.conf
|
Fulcrum /fulcrum.conf
|
||||||
```
|
```
|
||||||
|
### Docker compose snippet
|
||||||
|
```
|
||||||
|
fulcrum:
|
||||||
|
image: cculianu/fulcrum:latest
|
||||||
|
depends_on: [bitcoind]
|
||||||
|
volumes:
|
||||||
|
- ${PWD}/fulcrum.conf:/fulcrum.conf
|
||||||
|
- ${PWD}/tls.key:/tls.key
|
||||||
|
- ${PWD}/tls.cert:/tls.cert
|
||||||
|
environment:
|
||||||
|
- DATA_DIR=/db
|
||||||
|
- SSL_CERTFILE=/tls.cert
|
||||||
|
- SSL_KEYFILE=/tls.key
|
||||||
|
command: [ "Fulcrum", "/fulcrum.conf" ]
|
||||||
|
```
|
||||||
## Sources:
|
## Sources:
|
||||||
* <https://github.com/cculianu/Fulcrum>
|
* <https://github.com/cculianu/Fulcrum>
|
||||||
* <https://sparrowwallet.com/docs/server-performance.html>
|
* <https://sparrowwallet.com/docs/server-performance.html>
|
||||||
|
|||||||
Reference in New Issue
Block a user