|
|
@ -1,4 +1,5 @@
|
|
|
|
#fixme Clone openIM Server project before using docker-compose,project address:https://github.com/OpenIMSDK/Open-IM-Server.git
|
|
|
|
#fixme Clone openIM Server project before using docker-compose,project address:https://github.com/OpenIMSDK/Open-IM-Server.git
|
|
|
|
|
|
|
|
# The command that triggers this file to pull the image is "docker compose up -f
|
|
|
|
version: '3'
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
networks:
|
|
|
@ -187,3 +188,111 @@ services:
|
|
|
|
networks:
|
|
|
|
networks:
|
|
|
|
server:
|
|
|
|
server:
|
|
|
|
ipv4_address: ${NODE_EXPORTER_NETWORK_ADDRESS:-172.28.0.12}
|
|
|
|
ipv4_address: ${NODE_EXPORTER_NETWORK_ADDRESS:-172.28.0.12}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Source code deployment does not require pulling the following mirrors
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# openim-server:
|
|
|
|
|
|
|
|
# image: ${IMAGE_REGISTRY:-ghcr.io/openimsdk}/openim-server:${SERVER_IMAGE_VERSION:-main}
|
|
|
|
|
|
|
|
# container_name: openim-server
|
|
|
|
|
|
|
|
# ports:
|
|
|
|
|
|
|
|
# - "${OPENIM_WS_PORT:-10001}:${OPENIM_WS_PORT:-10001}"
|
|
|
|
|
|
|
|
# - "${API_OPENIM_PORT:-10002}:${API_OPENIM_PORT:-10002}"
|
|
|
|
|
|
|
|
# - "${API_PROM_PORT:-20100}:${API_PROM_PORT:-20100}"
|
|
|
|
|
|
|
|
# - "${USER_PROM_PORT:-20110}:${USER_PROM_PORT:-20110}"
|
|
|
|
|
|
|
|
# - "${FRIEND_PROM_PORT:-20120}:${FRIEND_PROM_PORT:-20120}"
|
|
|
|
|
|
|
|
# - "${MESSAGE_PROM_PORT:-20130}:${MESSAGE_PROM_PORT:-20130}"
|
|
|
|
|
|
|
|
# - "${MSG_GATEWAY_PROM_PORT:-20140}:${MSG_GATEWAY_PROM_PORT:-20140}"
|
|
|
|
|
|
|
|
# - "${GROUP_PROM_PORT:-20150}:${GROUP_PROM_PORT:-20150}"
|
|
|
|
|
|
|
|
# - "${AUTH_PROM_PORT:-20160}:${AUTH_PROM_PORT:-20160}"
|
|
|
|
|
|
|
|
# - "${PUSH_PROM_PORT:-20170}:${PUSH_PROM_PORT:-20170}"
|
|
|
|
|
|
|
|
# - "${CONVERSATION_PROM_PORT:-20230}:${CONVERSATION_PROM_PORT:-20230}"
|
|
|
|
|
|
|
|
# - "${RTC_PROM_PORT:-21300}:${RTC_PROM_PORT:-21300}"
|
|
|
|
|
|
|
|
# - "${THIRD_PROM_PORT:-21301}:${THIRD_PROM_PORT:-21301}"
|
|
|
|
|
|
|
|
# - "21400-21403:21400-21403"
|
|
|
|
|
|
|
|
# healthcheck:
|
|
|
|
|
|
|
|
# test: ["CMD", "/openim/openim-server/scripts/check-all.sh"]
|
|
|
|
|
|
|
|
# interval: 120s
|
|
|
|
|
|
|
|
# timeout: 30s
|
|
|
|
|
|
|
|
# retries: 5
|
|
|
|
|
|
|
|
# env_file:
|
|
|
|
|
|
|
|
# - .env
|
|
|
|
|
|
|
|
# environment:
|
|
|
|
|
|
|
|
# - OPENIM_IP=${OPENIM_IP:-127.0.0.1}
|
|
|
|
|
|
|
|
# volumes:
|
|
|
|
|
|
|
|
# - "${DATA_DIR:-./}/openim-server/logs:/openim/openim-server/logs"
|
|
|
|
|
|
|
|
# - "${DATA_DIR:-./}/openim-server/_output/logs:/openim/openim-server/_output/logs"
|
|
|
|
|
|
|
|
# - "${DATA_DIR:-./}/openim-server/config:/openim/openim-server/config"
|
|
|
|
|
|
|
|
# restart: always
|
|
|
|
|
|
|
|
# depends_on:
|
|
|
|
|
|
|
|
# - kafka
|
|
|
|
|
|
|
|
# - mysql
|
|
|
|
|
|
|
|
# - mongodb
|
|
|
|
|
|
|
|
# - redis
|
|
|
|
|
|
|
|
# - minio
|
|
|
|
|
|
|
|
# logging:
|
|
|
|
|
|
|
|
# driver: json-file
|
|
|
|
|
|
|
|
# options:
|
|
|
|
|
|
|
|
# max-size: "1g"
|
|
|
|
|
|
|
|
# max-file: "2"
|
|
|
|
|
|
|
|
# networks:
|
|
|
|
|
|
|
|
# server:
|
|
|
|
|
|
|
|
# ipv4_address: ${OPENIM_SERVER_NETWORK_ADDRESS:-172.28.0.8}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### TODO: mysql is required to deploy the openim-chat component
|
|
|
|
|
|
|
|
# mysql:
|
|
|
|
|
|
|
|
# image: mysql:${MYSQL_IMAGE_VERSION:-5.7}
|
|
|
|
|
|
|
|
# platform: linux/amd64
|
|
|
|
|
|
|
|
# ports:
|
|
|
|
|
|
|
|
# - "${MYSQL_PORT:-13306}:3306"
|
|
|
|
|
|
|
|
# container_name: mysql
|
|
|
|
|
|
|
|
# volumes:
|
|
|
|
|
|
|
|
# - "${DATA_DIR:-./}/components/mysql/data:/var/lib/mysql"
|
|
|
|
|
|
|
|
# - "/etc/localtime:/etc/localtime"
|
|
|
|
|
|
|
|
# environment:
|
|
|
|
|
|
|
|
# MYSQL_ROOT_PASSWORD: "${MYSQL_PASSWORD:-openIM123}"
|
|
|
|
|
|
|
|
# restart: always
|
|
|
|
|
|
|
|
# networks:
|
|
|
|
|
|
|
|
# server:
|
|
|
|
|
|
|
|
# ipv4_address: ${MYSQL_NETWORK_ADDRESS:-172.28.0.15}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# openim-chat:
|
|
|
|
|
|
|
|
# image: ${IMAGE_REGISTRY:-ghcr.io/openimsdk}/openim-chat:${CHAT_IMAGE_VERSION:-main}
|
|
|
|
|
|
|
|
# container_name: openim-chat
|
|
|
|
|
|
|
|
# healthcheck:
|
|
|
|
|
|
|
|
# test: ["CMD", "/openim/openim-chat/scripts/check_all.sh"]
|
|
|
|
|
|
|
|
# interval: 60s
|
|
|
|
|
|
|
|
# timeout: 30s
|
|
|
|
|
|
|
|
# retries: 5
|
|
|
|
|
|
|
|
# env_file:
|
|
|
|
|
|
|
|
# - .env
|
|
|
|
|
|
|
|
# environment:
|
|
|
|
|
|
|
|
# - ZOOKEEPER_ADDRESS=${DOCKER_BRIDGE_GATEWAY:-172.28.0.1}
|
|
|
|
|
|
|
|
# - ZOOKEEPER_PORT=${ZOOKEEPER_PORT:-12181}
|
|
|
|
|
|
|
|
# - OPENIM_SERVER_ADDRESS=http://${OPENIM_SERVER_ADDRESS:-172.28.0.1}
|
|
|
|
|
|
|
|
# - API_OPENIM_PORT=${API_OPENIM_PORT:-10002}
|
|
|
|
|
|
|
|
# - MYSQL_ADDRESS=${DOCKER_BRIDGE_GATEWAY:-172.28.0.1}
|
|
|
|
|
|
|
|
# - MYSQL_PORT=${MYSQL_PORT:-13306}
|
|
|
|
|
|
|
|
# - REDIS_ADDRESS=${DOCKER_BRIDGE_GATEWAY:-172.28.0.1}
|
|
|
|
|
|
|
|
# - REDIS_PORT=${REDIS_PORT:-16379}
|
|
|
|
|
|
|
|
# ports:
|
|
|
|
|
|
|
|
# - "${OPENIM_CHAT_API_PORT:-10008}:10008"
|
|
|
|
|
|
|
|
# - "${OPENIM_ADMIN_API_PORT:-10009}:10009"
|
|
|
|
|
|
|
|
# volumes:
|
|
|
|
|
|
|
|
# - "${DATA_DIR:-./}/components/openim-chat/logs:/openim/openim-chat/logs"
|
|
|
|
|
|
|
|
# - "${DATA_DIR:-./}/components/openim-chat/_output/logs:/openim/openim-chat/_output/logs"
|
|
|
|
|
|
|
|
# - "${DATA_DIR:-./}/components/openim-chat/config:/openim/openim-chat/config"
|
|
|
|
|
|
|
|
# restart: always
|
|
|
|
|
|
|
|
# # user: root:root
|
|
|
|
|
|
|
|
# depends_on:
|
|
|
|
|
|
|
|
# - mysql
|
|
|
|
|
|
|
|
# - kafka
|
|
|
|
|
|
|
|
# - redis
|
|
|
|
|
|
|
|
# - zookeeper
|
|
|
|
|
|
|
|
# logging:
|
|
|
|
|
|
|
|
# driver: json-file
|
|
|
|
|
|
|
|
# options:
|
|
|
|
|
|
|
|
# max-size: "1g"
|
|
|
|
|
|
|
|
# max-file: "2"
|
|
|
|
|
|
|
|
# networks:
|
|
|
|
|
|
|
|
# server:
|
|
|
|
|
|
|
|
# ipv4_address: ${OPENIM_CHAT_NETWORK_ADDRESS:-172.28.0.9}
|
|
|
|