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.