Go to file
2024-08-03 14:29:00 +05:30
.github/workflows Merged changes from source-branch as a single commit 2024-08-03 14:29:00 +05:30
deb-files Separated images, attached same volume and port mapping 2024-06-08 23:11:36 +00:00
.DS_Store Cleanup and roadmap 2024-06-09 03:52:19 +05:30
.env.example Updated Readme, added comments, minor changes and cleanup 2024-07-02 15:52:47 +05:30
.gitignore Preparation for CI CD 2024-07-03 21:29:30 +05:30
docker-compose.yml Updated Readme, added comments, minor changes and cleanup 2024-07-02 15:52:47 +05:30
Dockerfile Structure set in place for Docker compose based deployment 2024-07-02 15:17:58 +05:30
entrypoint.sh Structure set in place for Docker compose based deployment 2024-07-02 15:17:58 +05:30
README.md Preparation for CI CD 2024-07-03 21:29:30 +05:30

Blockbook docker

Roadmap for upgrade

  • 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.

  • [Unable to build frontend separately since having backend package installed is a dependency] Create separate images for both backend and blockbook.
  • Attach the same volume to both the running containers of the images.

Quickstart

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

Running blockbook manually


docker volume create blockbook

docker network create blockbook

# Run backend in "it" mode for testing
docker run -it --name blockbook-backend --mount source=blockbook,target=/opt -p 38366:38366 -p 8066:8066 --network=blockbook vivekteega/blockbook:1.0.0 backend

# Run backend in daemon mode for production
docker run -d --name blockbook-backend --mount source=blockbook,target=/opt -p 38366:38366 -p 8066:8066 --network=blockbook vivekteega/blockbook:1.0.0 backend

# Run backend in daemon mode for production with Bootstrap
docker run -d --name blockbook-backend --mount source=blockbook,target=/opt -p 38366:38366 -p 8066:8066 --network=blockbook --env BOOTSTRAP_URL=https://bootstrap.ranchimall.net/blockbook-flo-backend1.tar.gz vivekteega/blockbook:1.0.0 backend


# Run frontend in "it" mode for testing
docker run -it --name blockbook-frontend --mount source=blockbook,target=/opt -p 9166:9166 -p 9066:9066 --network=blockbook vivekteega/blockbook:1.0.0 frontend 172.20.0.2

# Run frontend in daemon mode for production
docker run -d --name blockbook-frontend --mount source=blockbook,target=/opt -p 9166:9166 -p 9066:9066 --network=blockbook vivekteega/blockbook:1.0.0 frontend 172.20.0.2

# Bootstrap
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