|
|
@ -118,6 +118,8 @@ services:
|
|
|
|
bash -c "
|
|
|
|
bash -c "
|
|
|
|
/opt/bitnami/scripts/kafka/run.sh & sleep 5; /opt/bitnami/kafka/create_topic.sh; wait
|
|
|
|
/opt/bitnami/scripts/kafka/run.sh & sleep 5; /opt/bitnami/kafka/create_topic.sh; wait
|
|
|
|
"
|
|
|
|
"
|
|
|
|
|
|
|
|
extra_hosts:
|
|
|
|
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
- KAFKA_CFG_NODE_ID=0
|
|
|
|
- KAFKA_CFG_NODE_ID=0
|
|
|
|
- TZ=Asia/Shanghai
|
|
|
|
- TZ=Asia/Shanghai
|
|
|
@ -161,40 +163,40 @@ services:
|
|
|
|
server:
|
|
|
|
server:
|
|
|
|
ipv4_address: ${OPENIM_WEB_NETWORK_ADDRESS}
|
|
|
|
ipv4_address: ${OPENIM_WEB_NETWORK_ADDRESS}
|
|
|
|
|
|
|
|
|
|
|
|
openim-server:
|
|
|
|
# openim-server:
|
|
|
|
# image: ghcr.io/openimsdk/openim-server:main
|
|
|
|
# # image: ghcr.io/openimsdk/openim-server:main
|
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:main
|
|
|
|
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:main
|
|
|
|
# image: openim/openim-server:main
|
|
|
|
# # image: openim/openim-server:main
|
|
|
|
# build: .
|
|
|
|
# # build: .
|
|
|
|
container_name: openim-server
|
|
|
|
# container_name: openim-server
|
|
|
|
ports:
|
|
|
|
# ports:
|
|
|
|
- ${OPENIM_WS_PORT}:10001
|
|
|
|
# - ${OPENIM_WS_PORT}:10001
|
|
|
|
- ${API_OPENIM_PORT}:10002
|
|
|
|
# - ${API_OPENIM_PORT}:10002
|
|
|
|
healthcheck:
|
|
|
|
# healthcheck:
|
|
|
|
test: ["CMD", "/openim/openim-server/scripts/check-all.sh"]
|
|
|
|
# test: ["CMD", "/openim/openim-server/scripts/check-all.sh"]
|
|
|
|
interval: 300s
|
|
|
|
# interval: 300s
|
|
|
|
timeout: 10s
|
|
|
|
# timeout: 10s
|
|
|
|
retries: 5
|
|
|
|
# retries: 5
|
|
|
|
volumes:
|
|
|
|
# volumes:
|
|
|
|
- ./logs:/openim/openim-server/logs
|
|
|
|
# - ./logs:/openim/openim-server/logs
|
|
|
|
- ./_output:/openim/openim-server/_output
|
|
|
|
# - ./_output:/openim/openim-server/_output
|
|
|
|
- ./config:/openim/openim-server/config
|
|
|
|
# - ./config:/openim/openim-server/config
|
|
|
|
- ./scripts:/openim/openim-server/scripts
|
|
|
|
# - ./scripts:/openim/openim-server/scripts
|
|
|
|
restart: always
|
|
|
|
# restart: always
|
|
|
|
depends_on:
|
|
|
|
# depends_on:
|
|
|
|
- kafka
|
|
|
|
# - kafka
|
|
|
|
- mysql
|
|
|
|
# - mysql
|
|
|
|
- mongodb
|
|
|
|
# - mongodb
|
|
|
|
- redis
|
|
|
|
# - redis
|
|
|
|
- minio
|
|
|
|
# - minio
|
|
|
|
logging:
|
|
|
|
# logging:
|
|
|
|
driver: json-file
|
|
|
|
# driver: json-file
|
|
|
|
options:
|
|
|
|
# options:
|
|
|
|
max-size: "1g"
|
|
|
|
# max-size: "1g"
|
|
|
|
max-file: "2"
|
|
|
|
# max-file: "2"
|
|
|
|
networks:
|
|
|
|
# networks:
|
|
|
|
server:
|
|
|
|
# server:
|
|
|
|
ipv4_address: ${OPENIM_SERVER_NETWORK_ADDRESS}
|
|
|
|
# ipv4_address: ${OPENIM_SERVER_NETWORK_ADDRESS}
|
|
|
|
|
|
|
|
|
|
|
|
# openim-chat:
|
|
|
|
# openim-chat:
|
|
|
|
# # image: ghcr.io/openimsdk/openim-chat:main
|
|
|
|
# # image: ghcr.io/openimsdk/openim-chat:main
|
|
|
@ -231,30 +233,30 @@ services:
|
|
|
|
# server:
|
|
|
|
# server:
|
|
|
|
# ipv4_address: ${OPENIM_CHAT_NETWORK_ADDRESS}
|
|
|
|
# ipv4_address: ${OPENIM_CHAT_NETWORK_ADDRESS}
|
|
|
|
|
|
|
|
|
|
|
|
prometheus:
|
|
|
|
# prometheus:
|
|
|
|
image: prom/prometheus
|
|
|
|
# image: prom/prometheus
|
|
|
|
volumes:
|
|
|
|
# volumes:
|
|
|
|
- openim_server_prometheus_config:/etc/prometheus
|
|
|
|
# - openim_server_prometheus_config:/etc/prometheus
|
|
|
|
container_name: prometheus
|
|
|
|
# container_name: prometheus
|
|
|
|
ports:
|
|
|
|
# ports:
|
|
|
|
- ${PROMETHEUS_PORT}:9091
|
|
|
|
# - ${PROMETHEUS_PORT}:9091
|
|
|
|
command: --web.listen-address=:9091 --config.file="/etc/prometheus"
|
|
|
|
# command: --web.listen-address=:9091 --config.file="/etc/prometheus"
|
|
|
|
networks:
|
|
|
|
# networks:
|
|
|
|
server:
|
|
|
|
# server:
|
|
|
|
ipv4_address: ${PROMETHEUS_NETWORK_ADDRESS}
|
|
|
|
# ipv4_address: ${PROMETHEUS_NETWORK_ADDRESS}
|
|
|
|
|
|
|
|
|
|
|
|
grafana:
|
|
|
|
# grafana:
|
|
|
|
image: grafana/grafana
|
|
|
|
# image: grafana/grafana
|
|
|
|
volumes:
|
|
|
|
# volumes:
|
|
|
|
- openim_server_grafana_datasource:/etc/grafana/provisioning/datasources
|
|
|
|
# - openim_server_grafana_datasource:/etc/grafana/provisioning/datasources
|
|
|
|
- openim_server_grafana_config:/etc/grafana
|
|
|
|
# - openim_server_grafana_config:/etc/grafana
|
|
|
|
- openim_server_grafana_dashboard:/var/lib/grafana/dashboards
|
|
|
|
# - openim_server_grafana_dashboard:/var/lib/grafana/dashboards
|
|
|
|
container_name: grafana
|
|
|
|
# container_name: grafana
|
|
|
|
ports:
|
|
|
|
# ports:
|
|
|
|
- ${GRAFANA_PORT}:3000
|
|
|
|
# - ${GRAFANA_PORT}:3000
|
|
|
|
networks:
|
|
|
|
# networks:
|
|
|
|
server:
|
|
|
|
# server:
|
|
|
|
ipv4_address: ${GRAFANA_NETWORK_ADDRESS}
|
|
|
|
# ipv4_address: ${GRAFANA_NETWORK_ADDRESS}
|
|
|
|
|
|
|
|
|
|
|
|
# node-exporter:
|
|
|
|
# node-exporter:
|
|
|
|
# image: quay.io/prometheus/node-exporter
|
|
|
|
# image: quay.io/prometheus/node-exporter
|
|
|
|