Repository navigation
|
質問失礼します. |
Answered by
ciffelia
Mar 1, 2024
Replies: 1 comment 1 reply
|
可能です。まずBotを1つだけ立ち上げる設定をした後に、次の手順でBotを増やしてください。
以上の手順を実行すると、 services:
app:
image: ghcr.io/ciffelia/koe:1.1.1
init: true
depends_on:
redis:
condition: service_healthy
voicevox:
condition: service_healthy
restart: unless-stopped
environment:
RUST_LOG: warn
volumes:
- "./config/koe.yaml:/etc/koe.yaml:ro"
app2:
image: ghcr.io/ciffelia/koe:1.1.1
init: true
depends_on:
redis:
condition: service_healthy
voicevox:
condition: service_healthy
restart: unless-stopped
environment:
RUST_LOG: warn
volumes:
- "./config/koe2.yaml:/etc/koe.yaml:ro"
app3:
image: ghcr.io/ciffelia/koe:1.1.1
init: true
depends_on:
redis:
condition: service_healthy
voicevox:
condition: service_healthy
restart: unless-stopped
environment:
RUST_LOG: warn
volumes:
- "./config/koe3.yaml:/etc/koe.yaml:ro"
redis:
image: redis:7.2.4
command: /usr/local/etc/redis/redis.conf
# 以下省略 |
1 reply
Answer selected by
ciffelia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可能です。まずBotを1つだけ立ち上げる設定をした後に、次の手順でBotを増やしてください。
koe.yamlをkoe2.yaml,koe3.yamlのようにコピーし、Discordのtoken設定をそれぞれ書き換えてください。redisやvoicevoxの設定はそのままにすることで、複数のBot間での共有が可能です。docker-compose.yamlのappの項目をコピーし、app2,app3のようにする。それぞれ設定ファイルをkoe2.yaml,koe3.yamlに変更する。以上の手順を実行すると、
docker-compose.yamlは次のようになるはずです。