Skip to content
On this page

使用docker进行部署

你的环境需要安装 git, nano, docker(with compose plugin)

dc 等同于 docker compose

准备

git clone https://github.com/lotusnetwork/bodhi-docker.git

如果想在arm的服务器上使用bodhi,请将docker-compose.yml中的

image: ghcr.io/lotusnetwork/bodhi-docker

修改成

build: https://github.com/lotusnetwork/bodhi-docker.git

准备您的tls证书

拷贝您的证书与私钥至bodhi-docker/data

现在您的目录格式应该如下

|- docker-compose.yml
|- data/
 |- hysteria
 |- config.ini
 |- cert.crt
 |- key.key
 |- bin/
  |- yq

data文件夹将会被映射到容器内的/gateway

修改配置档

upstream_api=https://example.com <- board address 修改它

api_port=7653 <- Hysteria api port

nodeid=1 <- remote nodeID 修改它

core_path=/gateway/hysteria 到hysteria核心的路径(容器内)

tls_cert=/gateway/cert.crt <-path to tls cert 修改它

tls_key=/gateway/key.key <- path to tls key 修改它

psk=leuleuleuleu <- password for nodeAPI 修改它

obfs=true/false <- 启用/禁用 obfs 于 hysteria 中 如果您不使用lotusboard请将其设定为true

acl= 填入你的acl配置档完整路径

启动 bodhi

dc up -d

All projects released with GPL3 License.