Updated Readme, added comments, minor changes and cleanup
This commit is contained in:
parent
9cbfe96d44
commit
95393696ed
@ -2,9 +2,11 @@ BACKEND_IMAGE=vivekteega/blockbook:1.0.0
|
||||
FRONTEND_IMAGE=vivekteega/blockbook:1.0.0
|
||||
BACKEND_CONTAINER_NAME=blockbook-backend
|
||||
FRONTEND_CONTAINER_NAME=blockbook-frontend
|
||||
BACKEND_BOOTSTRAP_FILE=/path/to/your/bootstrap-blockbook-flo-mainnet-backend.tar.gz
|
||||
FRONTEND_BOOTSTRAP_FILE=/path/to/your/bootstrap-blockbook-flo-mainnet-frontend.tar.gz
|
||||
BACKEND_BOOTSTRAP_FILE=/path/to/your/bootstrap-blockbook-flo-mainnet-backend.tar.gz # Set to empty string if not provided
|
||||
FRONTEND_BOOTSTRAP_FILE=/path/to/your/bootstrap-blockbook-flo-mainnet-frontend.tar.gz # Set to empty string if not provided
|
||||
BACKEND_BOOTSTRAP_URL=/path/to/your/bootstrap-blockbook-flo-mainnet-backend.tar.gz # Set to empty string if not provided
|
||||
FRONTEND_BOOTSTRAP_URL=/path/to/your/bootstrap-blockbook-flo-mainnet-frontend.tar.gz # Set to empty string if not provided
|
||||
BACKEND_PORT_1=38366
|
||||
BACKEND_PORT_2=8066
|
||||
FRONTEND_PORT_1=9166
|
||||
FRONTEND_PORT_2=9066
|
||||
FRONTEND_PORT_2=9066
|
||||
28
README.md
28
README.md
@ -2,20 +2,22 @@
|
||||
|
||||
## Roadmap for upgrade
|
||||
|
||||
- [X] [Unable to build frontend separately since having backend package installed is a dependency] Create separate images for both backend and blockbook.
|
||||
- [X] Attach the same volume to both the running containers of the images.
|
||||
- [ ] Think of how Blockbook container will detect the spots of backend container
|
||||
- [ ] Figure out if multiple volume path need to be mounted
|
||||
- [ ] See if creating a new network for both the containers will be a good option.
|
||||
- [ ] How to set this up in production
|
||||
- [ ] Think of how Blockbook container will detect the status of backend container
|
||||
- [ ] Figure out if multiple volume path need to be mounted
|
||||
- [ ] See if creating a new network for both the containers will be a good option.
|
||||
- [X] [Unable to build frontend separately since having backend package installed is a dependency] Create separate images for both backend and blockbook.
|
||||
- [X] Attach the same volume to both the running containers of the images.
|
||||
|
||||
## Quickstart
|
||||
To run the services using this file, run the following command in the same directory:
|
||||
|
||||
To run the services using this file create a .env file using .env.example file, fill info and run the following command in the same directory:
|
||||
|
||||
```
|
||||
sudo docker-compose up -d
|
||||
```
|
||||
|
||||
## Building and running blockbook image
|
||||
## Running blockbook manually
|
||||
|
||||
```
|
||||
|
||||
@ -43,15 +45,3 @@ docker run -d --name blockbook-frontend --mount source=blockbook,target=/opt -p
|
||||
docker run -d --name blockbook-frontend --mount source=blockbook,target=/opt -p 9166:9166 -p 9066:9066 --network=blockbook --env BOOTSTRAP_URL=https://bootstrap.ranchimall.net/blockbook-flo-frontend.tar.gz vivekteega/blockbook:1.0.0 frontend 172.20.0.2
|
||||
|
||||
```
|
||||
|
||||
## Building & running backend image
|
||||
|
||||
```
|
||||
docker build -t vivekteega/blockbook-backend:1.0.0 -f Dockerfile_backend .
|
||||
|
||||
docker volume create blockbook
|
||||
|
||||
docker run -it --mount source=blockbook,target=/opt/coins -p vivekteega/blockbook-backend:1.0.
|
||||
|
||||
docker run -d --mount source=blockbook,target=/opt/coins -p 38366:38366 -p 8066:8066 vivekteega/blockbook-backend:1.0.0
|
||||
```
|
||||
@ -14,8 +14,8 @@ services:
|
||||
- "${BACKEND_PORT_2}:8066"
|
||||
command: backend
|
||||
environment:
|
||||
- BOOTSTRAP_FILE=/local-bootstrap/bootstrap-blockbook-flo-mainnet-backend.tar.gz
|
||||
- BOOTSTRAP_URL=${BOOTSTRAP_URL:-} # Set to empty string if not provided
|
||||
- BOOTSTRAP_FILE=/local-bootstrap/bootstrap-blockbook-flo-mainnet-backend.tar.gz # Set to empty string if not provided
|
||||
- BOOTSTRAP_URL=${BACKEND_BOOTSTRAP_URL:-} # Set to empty string if not provided
|
||||
|
||||
blockbook-frontend:
|
||||
image: ${FRONTEND_IMAGE}
|
||||
@ -34,8 +34,8 @@ services:
|
||||
command: >
|
||||
"/opt/entrypoint.sh frontend $(getent hosts blockbook-backend | awk '{ print $1 }')"
|
||||
environment:
|
||||
- BOOTSTRAP_FILE=/local-bootstrap/bootstrap-blockbook-flo-mainnet-frontend.tar.gz
|
||||
- BOOTSTRAP_URL=${BOOTSTRAP_URL:-} # Set to empty string if not provided
|
||||
- BOOTSTRAP_FILE=/local-bootstrap/bootstrap-blockbook-flo-mainnet-frontend.tar.gz # Set to empty string if not provided
|
||||
- BOOTSTRAP_URL=${FRONTEND_BOOTSTRAP_URL:-} # Set to empty string if not provided
|
||||
|
||||
volumes:
|
||||
blockbook:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user