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 and docker-compose.yml #2788

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Ubuntu latest
FROM ubuntu:latest
# Update packages
RUN apt-get update && apt-get upgrade -y
RUN apt install curl -y
WORKDIR ~/bin
# Install latest ord release from github
RUN curl -Ls -o install.sh https://raw.githubusercontent.com/ordinals/ord/master/install.sh
# Make executable
RUN chmod +x install.sh
RUN ./install.sh
# Set entrypoint to ord with env vars set in docker-compose.yml
ENTRYPOINT ~/bin/ord --data-dir $DATA_DIR --rpc-url $RPC_HOST:$RPC_PORT --cookie-file $COOKIE_FILE server --http --http-port $HTTP_PORT
26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '3'
services:
ord:
image: ord
container_name: ord
build:
context: .
dockerfile: Dockerfile
volumes:
# You can use any of these paths to store the index data on your host machine (or any other path you like)
# Default paths for each os are listed below - just comment / uncomment as needed
- ~/.local/share/ord:/ordinals:rw # Linux
# - /roaming/ord:/ordinals:rw # Windows
# - ~/Library/Application Support/ord:/ordinals:rw # Mac OSX
- ~/.bitcoin:/root/.bitcoin # this may vary depending on your bitcoin.conf
environment:
RPC_HOST: "127.0.0.1"
RPC_PORT: "8332"
COOKIE_FILE: "/root/.bitcoin/.cookie"
DATA_DIR: "/ordinals/index-data"
HTTP_PORT: "8080"
RUST_LOG: "INFO"
RUST_BACKTRACE: "FULL"
network_mode: host
expose:
- "8080"
Loading