
Migration plan: * add zk* to emergency * copy data files on each node to a safe place for DR backup * make a json data backup: zk-shell localhost:2181 --run-once 'mirror / json://!tmp!zookeeper-backup.json/' * manually run a modified playbook to set up the docker infra without starting containers * rolling restart; for each node: * stop zk * split data and log files and move them to new locations * remove zk packages * start zk containers * remove from emergency; land this change. Change-Id: Ic06c9cf9604402aa8eb4bb79238021c14c5d9563
15 lines
381 B
YAML
15 lines
381 B
YAML
# Version 2 is the latest that is supported by docker-compose in
|
|
# Ubuntu Xenial.
|
|
version: '2'
|
|
|
|
services:
|
|
zk:
|
|
image: docker.io/library/zookeeper:3.5
|
|
network_mode: host
|
|
user: "10001:10001"
|
|
volumes:
|
|
- "/var/zookeeper/conf/zoo.cfg:/conf/zoo.cfg"
|
|
- "/var/zookeeper/data:/data"
|
|
- "/var/zookeeper/datalog:/datalog"
|
|
- "/var/zookeeper/logs:/logs"
|