2022-07-12 09:41:50 +00:00
|
|
|
version: '1'
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: redis:latest
|
|
|
|
container_name: iotkit-ce-redis
|
2022-07-14 08:38:11 +00:00
|
|
|
ports:
|
|
|
|
- 6379:6379
|
|
|
|
command: redis-server --appendonly yes
|
2022-07-12 09:41:50 +00:00
|
|
|
elasticsearch:
|
|
|
|
image: elasticsearch:7.12.0
|
|
|
|
container_name: iotkit-ce-elasticsearch
|
|
|
|
environment:
|
|
|
|
ES_JAVA_OPTS: -Djava.net.preferIPv4Stack=true -Xms1g -Xmx1g
|
|
|
|
transport.host: 0.0.0.0
|
|
|
|
discovery.type: single-node
|
|
|
|
bootstrap.memory_lock: "true"
|
2022-07-14 08:38:11 +00:00
|
|
|
ports:
|
|
|
|
- 9200:9200
|
|
|
|
- 9300:9300
|
2022-07-12 09:41:50 +00:00
|
|
|
ui:
|
2022-07-14 08:38:11 +00:00
|
|
|
image: uncleregan/iotkit-ui:0.3.4
|
2022-07-12 09:41:50 +00:00
|
|
|
container_name: iotkit-ce-ui
|
|
|
|
ports:
|
2022-07-14 08:38:11 +00:00
|
|
|
- 80:80
|
2022-07-12 09:41:50 +00:00
|
|
|
links:
|
|
|
|
- iotkit:iotkit
|
|
|
|
iotkit:
|
2022-07-14 08:38:11 +00:00
|
|
|
image: uncleregan/iotkit:0.3.3
|
|
|
|
container_name: iotkit-cei
|
|
|
|
restart: on-failure
|
2022-07-12 09:41:50 +00:00
|
|
|
ports:
|
|
|
|
- 8086:8086 # API端口
|
|
|
|
- 1883-1890:1883-1890 # 预留
|
|
|
|
- 8000-8010:8000-8010 # 预留
|
|
|
|
links:
|
|
|
|
- redis:redis
|
|
|
|
- elasticsearch:elasticsearch
|
|
|
|
depends_on:
|
|
|
|
- elasticsearch
|
2022-07-14 08:38:11 +00:00
|
|
|
- redis
|