Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- MYSQL_ROOT_PASSWORD=XzHvhX4CDaN696oQAXdmlcsrqgWbkxRl
- MYSQL_DATABASE=cwliot1.8
- TZ=Asia/Shanghai
command: ["--default-authentication-plugin=mysql_native_password"]
command: [ "--default-authentication-plugin=mysql_native_password" ]

influxdb:
image: influxdb:1.6.4
Expand All @@ -53,22 +53,26 @@ services:
container_name: IntelliConnect-ce-emqx
restart: always
environment:
# 设置 Dashboard 的默认管理员用户名
- EMQX_BOOTSTRAP_DEFAULT_ADMIN_USERNAME=admin
# 设置 Dashboard 的默认管理员密码 (请务必修改为一个强密码)
- EMQX_BOOTSTRAP_DEFAULT_ADMIN_PASSWORD=XdmlcsrqgWbkxRl1.
- TZ=Asia/Shanghai
healthcheck:
test: ["CMD", "/opt/emqx/bin/emqx_ctl", "status"]
test: [ "CMD", "/opt/emqx/bin/emqx_ctl", "status" ]
interval: 5s
timeout: 25s
retries: 5
networks:
emqx-bridge:
aliases:
- node1.emqx.io
- node1.emqx.io
ports:
- 1883:1883
- 8083:8083
- 8084:8084
- 8883:8883
- 18083:18083
- 18083:18083
volumes:
- "emqx-volume:/opt/emqx/log"
- "emqx-volume:/opt/emqx/data"
Expand All @@ -90,7 +94,7 @@ services:
# - CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER=chromadb.auth.basic.BasicAuthCredentialsProvider
# 可选:健康检查
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/heartbeat"]
test: [ "CMD", "/bin/bash", "-c", "cat < /dev/null > /dev/tcp/localhost/8000" ]
interval: 30s
timeout: 10s
retries: 3
Expand All @@ -104,4 +108,4 @@ volumes:

networks:
emqx-bridge:
driver: bridge
driver: bridge