Specify versions

This commit is contained in:
pablo 2023-02-18 23:14:48 +01:00
parent ca4a2c095a
commit 0483880f1f
2 changed files with 11 additions and 13 deletions

View file

@ -24,15 +24,14 @@ First, clone this repo where you would like to run your node.
### Building electrs ### Building electrs
Since there is no good `electrs` docker image out there, we roll our own one 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 for this project. The file is `electrs-docker/Dockerfile`. To build the image,
following command: run the following command:
```bash ```bash
cd electrs-docker cd electrs-docker
docker build -t my-electrs:latest -f Dockerfile . docker build -t my-electrs:latest -f Dockerfile .
``` ```
### Environment and configuration files ### Environment and configuration files
Now, you need to build a `.env` file. You can start by making a copy of 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 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 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 on the root of this repo. The best place to get an example
LNbits repository](https://github.com/lnbits/lnbits). is [the official LNbits repository](https://github.com/lnbits/lnbits).
### Running and Smoke testing ### Running and Smoke testing
@ -73,11 +71,11 @@ different services:
## Upgrading versions of the different services ## Upgrading versions of the different services
- Bitcoin: upgrade in docker-compose.yaml. - 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. - mempool: upgrade web, api and db in docker-compose.yaml.
- LNbits: upgrade in docker-compose.yaml. - LNbits: upgrade in docker-compose.yaml.
### How to backup data ### How to backup data
TODO: explain how to back all the data up with a rsync. TODO: explain how to back all the data up with a rsync.

View file

@ -2,7 +2,7 @@ version: '3'
services: services:
bitcoin: bitcoin:
container_name: bitcoind container_name: bitcoind
image: lncm/bitcoind:v22.0 image: lncm/bitcoind:v22.0@sha256:0e00667f8f084536f45ba680844b6f23a51d3101fb08d8e0ca371ee3f89bc72d
volumes: volumes:
- ./data/bitcoin:/data/.bitcoin - ./data/bitcoin:/data/.bitcoin
restart: unless-stopped restart: unless-stopped
@ -37,7 +37,7 @@ services:
FRONTEND_HTTP_PORT: "8080" FRONTEND_HTTP_PORT: "8080"
BACKEND_MAINNET_HTTP_HOST: "mempool-api" BACKEND_MAINNET_HTTP_HOST: "mempool-api"
depends_on: [mempool-api] depends_on: [mempool-api]
image: mempool/frontend:latest image: mempool/frontend:v2.4.0@sha256:cac0536d7663c2c9364ae015951c3493c6b0f566ee17eacccdaa41d55d31d86f
user: "1000:1000" user: "1000:1000"
restart: on-failure restart: on-failure
stop_grace_period: 1m stop_grace_period: 1m
@ -65,7 +65,7 @@ services:
DATABASE_PASSWORD: ${MEMPOOL_MYSQL_PASSWORD} DATABASE_PASSWORD: ${MEMPOOL_MYSQL_PASSWORD}
STATISTICS_ENABLED: "true" STATISTICS_ENABLED: "true"
depends_on: [mempool-db] depends_on: [mempool-db]
image: mempool/backend:latest image: mempool/backend:v2.4.1@sha256:2fb4e74fc1871535da2f57364b931038a927fbc390793bfc10a60a7b8f91c79d
user: "1000:1000" user: "1000:1000"
restart: on-failure restart: on-failure
stop_grace_period: 1m stop_grace_period: 1m
@ -83,7 +83,7 @@ services:
MYSQL_PASSWORD: ${MEMPOOL_MYSQL_PASSWORD} MYSQL_PASSWORD: ${MEMPOOL_MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MEMPOOL_MYSQL_ROOT_PASSWORD} MYSQL_ROOT_PASSWORD: ${MEMPOOL_MYSQL_ROOT_PASSWORD}
depends_on: [bitcoin, electrs] depends_on: [bitcoin, electrs]
image: mariadb:10.5.8 image: mariadb:10.5.8@sha256:03fb19fa5729856ec8c8ed23d421ed1ab6c0e2d63fdf2b1bd8d311025e228a9b
user: "1000:1000" user: "1000:1000"
restart: on-failure restart: on-failure
stop_grace_period: 1m stop_grace_period: 1m
@ -94,7 +94,7 @@ services:
lnbits: lnbits:
container_name: lnbits container_name: lnbits
image: lnbitsdocker/lnbits-legend:0.9.7 image: lnbitsdocker/lnbits-legend:0.9.7@sha256:dfc8bc738c6e288f33579888a95576cb603db48442609a1b2bda42f46d9a7ed4
volumes: volumes:
- ./data/lnbits/.env:/app/.env - ./data/lnbits/.env:/app/.env
- ./data/lnbits/data/:/app/data - ./data/lnbits/data/:/app/data