blockbook-docker/README.md
Vivek Teega b60a489df4 Squashed commit of the following:
commit 5d82cb79f9
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Sat Aug 3 15:30:18 2024 +0530

    remove build workflows

commit 14e392ee8a
Merge: 24f8a63 32821cd
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Sat Aug 3 15:20:12 2024 +0530

    Merge pull request #15 from vivekteega/upgrade/separate-images

    Merged changes from source-branch as a single commit

commit 32821cd482
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Sat Aug 3 14:29:00 2024 +0530

    Merged changes from source-branch as a single commit

commit 24f8a637d2
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Wed Jul 3 21:29:30 2024 +0530

    Preparation for CI CD

commit 95393696ed
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Tue Jul 2 15:52:47 2024 +0530

    Updated Readme, added comments, minor changes and cleanup

commit 9cbfe96d44
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Tue Jul 2 15:17:58 2024 +0530

    Structure set in place for Docker compose based deployment

commit b7d99fcd08
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Wed Jun 12 20:08:31 2024 +0530

    Added changes to entrypoint.sh for frontend to take in IP of backend container for RPC connection

commit a162ab19f3
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Tue Jun 11 15:48:12 2024 +0530

    Build single image, but separate execution

commit 15b9955f98
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Sat Jun 8 23:11:36 2024 +0000

    Separated images, attached same volume and port mapping

commit 81b6cee363
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Sun Jun 9 03:52:19 2024 +0530

    Cleanup and roadmap

commit 76a911542b
Merge: 1f463bd 00b2ca2
Author: Vivek Teega <vivek.teega@gmail.com>
Date:   Mon Jun 3 15:16:45 2024 +0530

    Merge pull request #7 from asif158/upgrade/sysbox-independent

    Initial changes for removing sysbox dependency
2024-08-03 15:33:17 +05:30

2.2 KiB

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