diff --git a/deploy.Dockerfile b/deploy.Dockerfile index b32115f99..474ea3a75 100644 --- a/deploy.Dockerfile +++ b/deploy.Dockerfile @@ -36,4 +36,4 @@ COPY --from=build /Open-IM-Server/bin /Open-IM-Server/bin WORKDIR /Open-IM-Server/script -CMD ["./start_all.sh"] \ No newline at end of file +CMD ["./start_all_for_docker.sh"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 65e19769d..dfdf0783b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -66,9 +66,9 @@ services: KAFKA_ZOOKEEPER_CONNECT: 127.0.0.1:2181 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092 KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092 + network_mode: "host" depends_on: - zookeeper - network_mode: "host" etcd: image: quay.io/coreos/etcd