If data persistence is not performed, all data in the queue will be cleared when the service is restarted. However, some queues need to be restarted to restore data.
Signed-off-by: Wu Zhende wuzhende666@163.com --- container/rabbitmq/start | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/container/rabbitmq/start b/container/rabbitmq/start index 6b875f3..cdf5dee 100755 --- a/container/rabbitmq/start +++ b/container/rabbitmq/start @@ -4,16 +4,21 @@
. $CCI_SRC/container/defconfig.sh
-docker_rm rabbitmq +docker_name=rabbitmq + +docker_rm $docker_name
cmd=( docker run --restart=always -d - --name rabbitmq + --name $docker_name + --hostname $docker_name + -u 1090 -p 5672:5672 -p 15672:15672 -v /etc/localtime:/etc/localtime:ro + -v /srv/rabbitmq:/var/lib/rabbitmq rabbitmq:3-management )