Specify versions
This commit is contained in:
parent
ca4a2c095a
commit
0483880f1f
2 changed files with 11 additions and 13 deletions
14
README.md
14
README.md
|
|
@ -24,15 +24,14 @@ First, clone this repo where you would like to run your node.
|
|||
### Building electrs
|
||||
|
||||
Since there is no good `electrs` docker image out there, we roll our own one
|
||||
for this project. The file is `electrs-docker/Dockerfile`. To build the image, run the
|
||||
following command:
|
||||
for this project. The file is `electrs-docker/Dockerfile`. To build the image,
|
||||
run the following command:
|
||||
|
||||
```bash
|
||||
cd electrs-docker
|
||||
docker build -t my-electrs:latest -f Dockerfile .
|
||||
```
|
||||
|
||||
|
||||
### Environment and configuration files
|
||||
|
||||
Now, you need to build a `.env` file. You can start by making a copy of
|
||||
|
|
@ -51,9 +50,8 @@ not make any changes if you are following these instructions.
|
|||
|
||||
Inside `data/lnbits`, you will need to place a `.env` file. Pay attention: this
|
||||
file is specific for LNbits and is unrelated to the other `.env` file that sits
|
||||
on the root of this repo. The best place to get an example is [the official
|
||||
LNbits repository](https://github.com/lnbits/lnbits).
|
||||
|
||||
on the root of this repo. The best place to get an example
|
||||
is [the official LNbits repository](https://github.com/lnbits/lnbits).
|
||||
|
||||
### Running and Smoke testing
|
||||
|
||||
|
|
@ -73,11 +71,11 @@ different services:
|
|||
## Upgrading versions of the different services
|
||||
|
||||
- Bitcoin: upgrade in docker-compose.yaml.
|
||||
- electrs: specify tag in custom electrs dockerfile, build again.
|
||||
- electrs: specify tag in the `git checkout` command in the custom electrs
|
||||
dockerfile, build again.
|
||||
- mempool: upgrade web, api and db in docker-compose.yaml.
|
||||
- LNbits: upgrade in docker-compose.yaml.
|
||||
|
||||
|
||||
### How to backup data
|
||||
|
||||
TODO: explain how to back all the data up with a rsync.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ version: '3'
|
|||
services:
|
||||
bitcoin:
|
||||
container_name: bitcoind
|
||||
image: lncm/bitcoind:v22.0
|
||||
image: lncm/bitcoind:v22.0@sha256:0e00667f8f084536f45ba680844b6f23a51d3101fb08d8e0ca371ee3f89bc72d
|
||||
volumes:
|
||||
- ./data/bitcoin:/data/.bitcoin
|
||||
restart: unless-stopped
|
||||
|
|
@ -37,7 +37,7 @@ services:
|
|||
FRONTEND_HTTP_PORT: "8080"
|
||||
BACKEND_MAINNET_HTTP_HOST: "mempool-api"
|
||||
depends_on: [mempool-api]
|
||||
image: mempool/frontend:latest
|
||||
image: mempool/frontend:v2.4.0@sha256:cac0536d7663c2c9364ae015951c3493c6b0f566ee17eacccdaa41d55d31d86f
|
||||
user: "1000:1000"
|
||||
restart: on-failure
|
||||
stop_grace_period: 1m
|
||||
|
|
@ -65,7 +65,7 @@ services:
|
|||
DATABASE_PASSWORD: ${MEMPOOL_MYSQL_PASSWORD}
|
||||
STATISTICS_ENABLED: "true"
|
||||
depends_on: [mempool-db]
|
||||
image: mempool/backend:latest
|
||||
image: mempool/backend:v2.4.1@sha256:2fb4e74fc1871535da2f57364b931038a927fbc390793bfc10a60a7b8f91c79d
|
||||
user: "1000:1000"
|
||||
restart: on-failure
|
||||
stop_grace_period: 1m
|
||||
|
|
@ -83,7 +83,7 @@ services:
|
|||
MYSQL_PASSWORD: ${MEMPOOL_MYSQL_PASSWORD}
|
||||
MYSQL_ROOT_PASSWORD: ${MEMPOOL_MYSQL_ROOT_PASSWORD}
|
||||
depends_on: [bitcoin, electrs]
|
||||
image: mariadb:10.5.8
|
||||
image: mariadb:10.5.8@sha256:03fb19fa5729856ec8c8ed23d421ed1ab6c0e2d63fdf2b1bd8d311025e228a9b
|
||||
user: "1000:1000"
|
||||
restart: on-failure
|
||||
stop_grace_period: 1m
|
||||
|
|
@ -94,7 +94,7 @@ services:
|
|||
|
||||
lnbits:
|
||||
container_name: lnbits
|
||||
image: lnbitsdocker/lnbits-legend:0.9.7
|
||||
image: lnbitsdocker/lnbits-legend:0.9.7@sha256:dfc8bc738c6e288f33579888a95576cb603db48442609a1b2bda42f46d9a7ed4
|
||||
volumes:
|
||||
- ./data/lnbits/.env:/app/.env
|
||||
- ./data/lnbits/data/:/app/data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue