commit5d82cb79f9Author: Vivek Teega <vivek.teega@gmail.com> Date: Sat Aug 3 15:30:18 2024 +0530 remove build workflows commit14e392ee8aMerge:24f8a6332821cdAuthor: 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 commit32821cd482Author: Vivek Teega <vivek.teega@gmail.com> Date: Sat Aug 3 14:29:00 2024 +0530 Merged changes from source-branch as a single commit commit24f8a637d2Author: Vivek Teega <vivek.teega@gmail.com> Date: Wed Jul 3 21:29:30 2024 +0530 Preparation for CI CD commit95393696edAuthor: Vivek Teega <vivek.teega@gmail.com> Date: Tue Jul 2 15:52:47 2024 +0530 Updated Readme, added comments, minor changes and cleanup commit9cbfe96d44Author: Vivek Teega <vivek.teega@gmail.com> Date: Tue Jul 2 15:17:58 2024 +0530 Structure set in place for Docker compose based deployment commitb7d99fcd08Author: 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 commita162ab19f3Author: Vivek Teega <vivek.teega@gmail.com> Date: Tue Jun 11 15:48:12 2024 +0530 Build single image, but separate execution commit15b9955f98Author: Vivek Teega <vivek.teega@gmail.com> Date: Sat Jun 8 23:11:36 2024 +0000 Separated images, attached same volume and port mapping commit81b6cee363Author: Vivek Teega <vivek.teega@gmail.com> Date: Sun Jun 9 03:52:19 2024 +0530 Cleanup and roadmap commit76a911542bMerge:1f463bd00b2ca2Author: 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
49 lines
2.2 KiB
Markdown
49 lines
2.2 KiB
Markdown
# 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.
|
|
---
|
|
- [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 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
|
|
|
|
```
|