feat: add openim docker compose

Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
pull/1550/head
Xinwei Xiong(cubxxw) 2 years ago
parent bb6462647a
commit 04ff9d75b3

@ -90,11 +90,11 @@ MONGO_ADDRESS=${MONGO_NETWORK_ADDRESS}
# Port on which MongoDB service is running. # Port on which MongoDB service is running.
# Default: MONGO_PORT=37017 # Default: MONGO_PORT=37017
MONGO_PORT=${MONGO_PORT} # MONGO_PORT=${MONGO_PORT}
# Username to authenticate with the MongoDB service. # Username to authenticate with the MongoDB service.
# Default: MONGO_USERNAME=root # Default: MONGO_USERNAME=root
MONGO_USERNAME=${MONGO_USERNAME} # MONGO_USERNAME=${MONGO_USERNAME}
# Password to authenticate with the MongoDB service. # Password to authenticate with the MongoDB service.
# Default: MONGO_PASSWORD=openIM123 # Default: MONGO_PASSWORD=openIM123
@ -122,6 +122,9 @@ REDIS_PASSWORD=${REDIS_PASSWORD}
# Default: KAFKA_ADDRESS=172.28.0.1 # Default: KAFKA_ADDRESS=172.28.0.1
KAFKA_ADDRESS=${KAFKA_NETWORK_ADDRESS} KAFKA_ADDRESS=${KAFKA_NETWORK_ADDRESS}
# Kakfa username to authenticate with the Kafka service.
# KAFKA_USERNAME=${KAFKA_USERNAME}
# Port on which Kafka distributed streaming platform is running. # Port on which Kafka distributed streaming platform is running.
# Default: KAFKA_PORT=19092 # Default: KAFKA_PORT=19092
KAFKA_PORT=${KAFKA_PORT} KAFKA_PORT=${KAFKA_PORT}
@ -149,7 +152,7 @@ MINIO_PORT=${MINIO_PORT}
# Access key to authenticate with the MinIO service. # Access key to authenticate with the MinIO service.
# Default: MINIO_ACCESS_KEY=root # Default: MINIO_ACCESS_KEY=root
MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY} # MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
# Secret key corresponding to the access key for MinIO authentication. # Secret key corresponding to the access key for MinIO authentication.
# Default: MINIO_SECRET_KEY=openIM123 # Default: MINIO_SECRET_KEY=openIM123

@ -25,7 +25,7 @@ services:
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
- wiredTigerCacheSizeGB=1 - wiredTigerCacheSizeGB=1
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME} - MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME:-root}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD} - MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_DATABASE} - MONGO_INITDB_DATABASE=${MONGO_DATABASE}
restart: always restart: always
@ -69,7 +69,7 @@ services:
kafka: kafka:
image: 'bitnami/kafka:3.5.1' image: 'bitnami/kafka:3.5.1'
container_name: kafka container_name: kafka
user: root user: ${KAFKA_USERNAME:-root}
restart: always restart: always
ports: ports:
- "${KAFKA_PORT}:9094" - "${KAFKA_PORT}:9094"
@ -103,7 +103,7 @@ services:
- "${DATA_DIR}/components/mnt/data:/data" - "${DATA_DIR}/components/mnt/data:/data"
- "${DATA_DIR}/components/mnt/config:/root/.minio" - "${DATA_DIR}/components/mnt/config:/root/.minio"
environment: environment:
MINIO_ROOT_USER: "${MINIO_ACCESS_KEY}" MINIO_ROOT_USER: "${MINIO_ACCESS_KEY:-root}"
MINIO_ROOT_PASSWORD: "${MINIO_SECRET_KEY}" MINIO_ROOT_PASSWORD: "${MINIO_SECRET_KEY}"
restart: always restart: always
command: minio server /data --console-address ':9090' command: minio server /data --console-address ':9090'

Loading…
Cancel
Save