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

added example for running testnet container #198

Merged
merged 2 commits into from
Oct 28, 2023
Merged
Changes from 1 commit
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
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,15 @@ go generate ./...
CGO_ENABLED=1 go build -o bin/ -tags='testnet netgo timetzdata' -trimpath -a -ldflags '-s -w' ./cmd/hostd
```

# Docker
## Docker Support
bustedware marked this conversation as resolved.
Show resolved Hide resolved

`hostd` has a Dockerfile for easy containerization. The image can be pulled from `ghcr.io/siafoundation/hostd`.
`hostd` includes a `Dockerfile` which can be used for building and running
hostd within a docker container. The image can also be pulled from `ghcr.io/siafoundation/hostd`.

## Running container

### Production

```sh
docker run -d \
--name hostd \
Expand All @@ -133,9 +136,21 @@ docker run -d \
-v ./storage:/storage \
-e HOSTD_SEED="my wallet seed" \
-e HOSTD_API_PASSWORD=hostsarecool \
ghcr.io/siafoundation/hostd:latest
bustedware marked this conversation as resolved.
Show resolved Hide resolved
hostd:latest
```

### Testnet

docker run -d \
--name hostd-testnet \
-p 127.0.0.1:9880:9880 \
-p 9881-9883:9881-9883 \
-v ./data:/data \
-v ./storage:/storage \
-e HOSTD_ZEN_SEED="my wallet seed" \
-e HOSTD_ZEN_API_PASSWORD=hostsarecool \
hostd:latest-testnet
bustedware marked this conversation as resolved.
Show resolved Hide resolved

### Docker Compose

```yml
Expand Down