Skip to content

Commit

Permalink
Merge pull request #37 from fixpoint/feature/issue34-swarm-rabbitmq-v…
Browse files Browse the repository at this point in the history
…olume

issue34: swarm 構成では RABBITMQ_DATA_DIR を名前付きボリュームに bind するようにしました
  • Loading branch information
tichi73 authored Jul 31, 2024
2 parents 31fdaa3 + 9c69d57 commit 633be01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ke2/cluster/swarm/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ services:
configs:
- source: rabbitmq-config-cluster
target: /etc/rabbitmq/conf.d/50-cluster.conf
volumes:
# Swarm 構成では RABBITMQ_DATA_DIR を名前付きボリュームに bind して再起動時にクラスタ再加入できるようにする
- ${RABBITMQ_DATA_DIR:-kompira_rmq}:/var/lib/rabbitmq
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE:-SECRET_COOKIE}
RABBITMQ_USE_LONGNAME: ${RABBITMQ_USE_LONGNAME:-false}
Expand Down Expand Up @@ -57,3 +60,5 @@ services:
configs:
rabbitmq-config-cluster:
file: ./rabbitmq-cluster.conf
volumes:
kompira_rmq:

0 comments on commit 633be01

Please sign in to comment.