-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
59 lines (53 loc) · 1.44 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.4'
services:
example:
image: ${DOCKER_REGISTRY-}example
links:
- influx
- cassandra
- iotdb
build:
context: .
dockerfile: src/example/Dockerfile
ports:
- "8080:8080"
networks:
- iotsharp-network
influx:
image: "quay.io/influxdb/influxdb:v2.0.4"
restart: always
container_name: influx
ports:
- "8086:8086"
environment:
TZ: "Asia/Shanghai"
volumes:
- ./data/influxdb-data:/var/lib/influxdb2
command: influxd run --bolt-path /var/lib/influxdb2/influxd.bolt --engine-path /var/lib/influxdb2/engine --store bolt
networks:
- iotsharp-network
cassandra:
image: cassandra:latest
container_name: cassandra
ports:
- 7000:7000
- 9042:9042
volumes:
- ./data/cassandra/commitlog:/var/lib/cassandra/commitlog
- ./data/cassandra/hints:/var/lib/cassandra/hints
- ./data/cassandra/data:/var/lib/cassandra/data
- ./data/cassandra/saved_caches:/var/lib/cassandra/saved_caches
- ./data/cassandra/logs:/var/log/cassandra
networks:
- iotsharp-network
iotdb:
image: apache/iotdb:0.13.0-node
restart: always
container_name: iotdb
ports:
- 6667:6667
networks:
- iotsharp-network
networks:
iotsharp-network:
driver: bridge