|
|
|
@ -58,6 +58,26 @@ services:
|
|
|
|
|
networks:
|
|
|
|
|
- openim
|
|
|
|
|
|
|
|
|
|
etcd:
|
|
|
|
|
image: "${ETCD_IMAGE}"
|
|
|
|
|
container_name: etcd
|
|
|
|
|
ports:
|
|
|
|
|
- "12379:2379"
|
|
|
|
|
- "12380:2380"
|
|
|
|
|
environment:
|
|
|
|
|
- ETCD_NAME=s1
|
|
|
|
|
- ETCD_DATA_DIR=/etcd-data
|
|
|
|
|
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
|
|
|
|
|
- ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379
|
|
|
|
|
- ETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380
|
|
|
|
|
- ETCD_INITIAL_ADVERTISE_PEER_URLS=http://0.0.0.0:2380
|
|
|
|
|
- ETCD_INITIAL_CLUSTER=s1=http://0.0.0.0:2380
|
|
|
|
|
- ETCD_INITIAL_CLUSTER_TOKEN=tkn
|
|
|
|
|
- ETCD_INITIAL_CLUSTER_STATE=new
|
|
|
|
|
restart: always
|
|
|
|
|
networks:
|
|
|
|
|
- openim
|
|
|
|
|
|
|
|
|
|
kafka:
|
|
|
|
|
image: "${KAFKA_IMAGE}"
|
|
|
|
|
container_name: kafka
|
|
|
|
|