|
|
@ -5,7 +5,7 @@ services:
|
|
|
|
mysql:
|
|
|
|
mysql:
|
|
|
|
image: mysql:5.7
|
|
|
|
image: mysql:5.7
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- 33306:33306
|
|
|
|
- 3306:3306
|
|
|
|
container_name: mysql
|
|
|
|
container_name: mysql
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- ./components/mysql/data:/var/lib/mysql
|
|
|
|
- ./components/mysql/data:/var/lib/mysql
|
|
|
@ -17,7 +17,7 @@ services:
|
|
|
|
mongodb:
|
|
|
|
mongodb:
|
|
|
|
image: mongo
|
|
|
|
image: mongo
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- 37017:37017
|
|
|
|
- 27017:27017
|
|
|
|
container_name: mongo
|
|
|
|
container_name: mongo
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- ./components/mongodb/data:/data/db
|
|
|
|
- ./components/mongodb/data:/data/db
|
|
|
@ -28,7 +28,7 @@ services:
|
|
|
|
redis:
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
image: redis
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- 36379:36379
|
|
|
|
- 6379:6379
|
|
|
|
container_name: redis
|
|
|
|
container_name: redis
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- ./components/redis/data:/data
|
|
|
|
- ./components/redis/data:/data
|
|
|
@ -45,7 +45,7 @@ services:
|
|
|
|
zookeeper:
|
|
|
|
zookeeper:
|
|
|
|
image: wurstmeister/zookeeper
|
|
|
|
image: wurstmeister/zookeeper
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- 32181:32181
|
|
|
|
- 2181:2181
|
|
|
|
container_name: zookeeper
|
|
|
|
container_name: zookeeper
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime
|
|
|
|
- /etc/localtime:/etc/localtime
|
|
|
@ -61,9 +61,9 @@ services:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
TZ: Asia/Shanghai
|
|
|
|
TZ: Asia/Shanghai
|
|
|
|
KAFKA_BROKER_ID: 0
|
|
|
|
KAFKA_BROKER_ID: 0
|
|
|
|
KAFKA_ZOOKEEPER_CONNECT: 127.0.0.1:32181
|
|
|
|
KAFKA_ZOOKEEPER_CONNECT: 127.0.0.1:2181
|
|
|
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:39092
|
|
|
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092
|
|
|
|
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:39092
|
|
|
|
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
|
|
|
|
network_mode: "host"
|
|
|
|
network_mode: "host"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- zookeeper
|
|
|
|
- zookeeper
|
|
|
@ -71,8 +71,8 @@ services:
|
|
|
|
etcd:
|
|
|
|
etcd:
|
|
|
|
image: quay.io/coreos/etcd
|
|
|
|
image: quay.io/coreos/etcd
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- 32379:32379
|
|
|
|
- 2379:2379
|
|
|
|
- 32380:32380
|
|
|
|
- 2380:2380
|
|
|
|
container_name: etcd
|
|
|
|
container_name: etcd
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- /etc/timezone:/etc/timezone
|
|
|
|
- /etc/timezone:/etc/timezone
|
|
|
@ -80,7 +80,7 @@ services:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
ETCDCTL_API: 3
|
|
|
|
ETCDCTL_API: 3
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
command: /usr/local/bin/etcd --name etcd0 --data-dir /etcd-data --listen-client-urls http://0.0.0.0:32379 --advertise-client-urls http://0.0.0.0:32379 --listen-peer-urls http://0.0.0.0:32380 --initial-advertise-peer-urls http://0.0.0.0:32380 --initial-cluster etcd0=http://0.0.0.0:32380 --initial-cluster-token tkn --initial-cluster-state new
|
|
|
|
command: /usr/local/bin/etcd --name etcd0 --data-dir /etcd-data --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://0.0.0.0:2379 --listen-peer-urls http://0.0.0.0:2380 --initial-advertise-peer-urls http://0.0.0.0:2380 --initial-cluster etcd0=http://0.0.0.0:2380 --initial-cluster-token tkn --initial-cluster-state new
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#fixme-----build from dockerfile---------
|
|
|
|
#fixme-----build from dockerfile---------
|
|
|
@ -109,7 +109,7 @@ services:
|
|
|
|
|
|
|
|
|
|
|
|
#fixme----build from docker hub------
|
|
|
|
#fixme----build from docker hub------
|
|
|
|
open-im-server:
|
|
|
|
open-im-server:
|
|
|
|
image: lyt1123/open_im_server:1.0.1
|
|
|
|
image: lyt1123/open_im_server
|
|
|
|
container_name: open-im-server
|
|
|
|
container_name: open-im-server
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- ./logs:/Open-IM-Server/logs
|
|
|
|
- ./logs:/Open-IM-Server/logs
|
|
|
|