iotkit-parent/docker-compose/docker-compose.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

version: '3'
services:
redis:
2022-07-20 09:14:20 +00:00
image: redis:5.0.8
container_name: iotkit-ce-redis
2022-07-14 08:38:11 +00:00
ports:
- 6379:6379
2022-07-20 09:14:20 +00:00
volumes:
- "redis-volume:/data"
2022-07-14 08:38:11 +00:00
command: redis-server --appendonly yes
2022-07-20 09:14:20 +00:00
environment:
- TZ=Asia/Shanghai
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-20 09:14:20 +00:00
volumes:
- "elasticsearch-volume:/usr/share/elasticsearch/data"
ui:
2022-07-14 08:38:11 +00:00
image: uncleregan/iotkit-ui:0.3.4
container_name: iotkit-ce-ui
ports:
2022-07-14 08:38:11 +00:00
- 80:80
links:
- iotkit:iotkit
2022-07-20 09:14:20 +00:00
volumes:
- "iotkit-volume:/usr/share/nginx/html/upload"
iotkit:
image: uncleregan/iotkit:0.3.4
container_name: iotkit-ce
2022-07-14 08:38:11 +00:00
restart: on-failure
ports:
- 8086:8086 # API端口
- 1883-1890:1883-1890 # 预留
- 8000-8010:8000-8010 # 预留
links:
- redis:redis
- elasticsearch:elasticsearch
depends_on:
- elasticsearch
2022-07-20 09:14:20 +00:00
- redis
volumes:
redis-volume:
elasticsearch-volume:
iotkit-volume: