Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile for building and running in a container. #54

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

schildbach
Copy link

Build with docker build -t fork-explorer . Example for docker-compose.yml:

fork-explorer:
    image: fork-explorer
    depends_on:
      - bitcoind
    environment:
      - BITCOIND_RPC_URL=http://bitcoind:8332
      - BITCOIND_RPC_USER=user
      - BITCOIND_RPC_PASSWORD=secret
      - FORK_NAME=Taproot testnet
      - FORK_THRESHOLD=1512
    ports:
      - "80:8080"

I changed the config.ts_TEMPLATE to use variables and moved the example values to comments. If you'd rather not change the template, then I guess we need to add another one for Docker.

TODO:

  • optimize image size
  • tighten permission (don't run as root)
  • somehow use a Docker secret for RPC auth (will probably require help from fork-explorer)

@hsjoberg hsjoberg force-pushed the master branch 9 times, most recently from bac6bff to 5918a71 Compare May 25, 2021 08:16
@hsjoberg hsjoberg force-pushed the master branch 2 times, most recently from abe91ca to b77db80 Compare June 17, 2021 16:37
@Joseph1417 Joseph1417 mentioned this pull request Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant