mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-24 02:55:06 +08:00
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
version: "3.9"
|
|
services:
|
|
zk1:
|
|
container_name: zk1
|
|
hostname: zk1
|
|
image: bitnami/zookeeper:3.7.1
|
|
ports:
|
|
- 21811:2181
|
|
environment:
|
|
- ALLOW_ANONYMOUS_LOGIN=yes
|
|
- ZOO_SERVER_ID=1
|
|
- ZOO_SERVERS=0.0.0.0:2888:3888,zk2:2888:3888,zk3:2888:3888
|
|
zk2:
|
|
container_name: zk2
|
|
hostname: zk2
|
|
image: bitnami/zookeeper:3.7.1
|
|
ports:
|
|
- 21812:2181
|
|
environment:
|
|
- ALLOW_ANONYMOUS_LOGIN=yes
|
|
- ZOO_SERVER_ID=2
|
|
- ZOO_SERVERS=zk1:2888:3888,0.0.0.0:2888:3888,zk3:2888:3888
|
|
zk3:
|
|
container_name: zk3
|
|
hostname: zk3
|
|
image: bitnami/zookeeper:3.7.1
|
|
ports:
|
|
- 21813:2181
|
|
environment:
|
|
- ALLOW_ANONYMOUS_LOGIN=yes
|
|
- ZOO_SERVER_ID=3
|
|
- ZOO_SERVERS=zk1:2888:3888,zk2:2888:3888,0.0.0.0:2888:3888
|
|
zoonavigator:
|
|
container_name: zoonavigator
|
|
image: elkozmon/zoonavigator
|
|
ports:
|
|
- 9000:9000
|
|
|
|
# Meilisearch instances
|
|
m1:
|
|
container_name: m1
|
|
hostname: m1
|
|
image: getmeili/meilisearch:prototype-zookeeper-ha-0
|
|
ports:
|
|
- 7700:7700
|
|
environment:
|
|
- MEILI_ZK_URL=zk1:2181
|
|
- MEILI_MASTER_KEY=masterkey
|
|
restart: always
|
|
m2:
|
|
container_name: m2
|
|
hostname: m2
|
|
image: getmeili/meilisearch:prototype-zookeeper-ha-0
|
|
ports:
|
|
- 7701:7700
|
|
environment:
|
|
- MEILI_ZK_URL=zk2:2181
|
|
- MEILI_MASTER_KEY=masterkey
|
|
restart: always |