-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (92 loc) · 2.19 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3'
services:
nifi:
image: influxdb/nifi:latest
command: '../scripts/start.sh'
container_name: nifi
ports:
- '8443:8443'
restart: always
environment:
- SINGLE_USER_CREDENTIALS_USERNAME=admin
- SINGLE_USER_CREDENTIALS_PASSWORD=nifipassword
- NIFI_WEB_HTTPS_HOST=nifi
networks:
- nifi-network
nifipoc:
image: influxdb/nifipoc:latest
command: 'bash ./nifi.bash'
container_name: nifi_poc
restart: "no"
depends_on:
- nifi
networks:
- nifi-network
env_file:
- .env
mosquitto1:
container_name: mosquitto1
image: eclipse-mosquitto:latest
volumes:
- ${PWD}/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ${PWD}/mosquitto/data/1/
hostname: mosquitto1
ports:
- '1883:1883'
- '9001:9001'
restart: unless-stopped
depends_on:
- nifi
networks:
- nifi-network
mosquitto2:
container_name: mosquitto2
image: eclipse-mosquitto:latest
volumes:
- ${PWD}/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ${PWD}/mosquitto/data/2/
hostname: mosquitto2
ports:
- '1884:1883'
- '9002:9001'
restart: unless-stopped
depends_on:
- nifi
networks:
- nifi-network
mqtt1:
container_name: mqtt1
image: efrecon/mqtt-client
command: pub -h mosquitto1 -p 1883 -t "/1/lp" -i 1 -m 'mqtt,client=1 myfield="fieldvalue"'
volumes:
- ${PWD}/pubdata/:/pubdata/
depends_on:
- mosquitto1
restart: always
networks:
- nifi-network
mqtt2:
container_name: mqtt2
image: efrecon/mqtt-client
command: pub -h mosquitto2 -p 1883 -t "/2/json" -i 2 -m '{"measurement":"my_measurement", "fields":"my_field","tags":"my_tag"}'
volumes:
- ${PWD}/pubdata/:/pubdata/
depends_on:
- mosquitto2
restart: always
networks:
- nifi-network
mqtt3:
container_name: mqtt3
image: efrecon/mqtt-client
command: pub -h mosquitto2 -p 1883 -t "/2/string" -i 3 -m 'hello'
volumes:
- ${PWD}/pubdata/:/pubdata/
depends_on:
- mosquitto2
restart: always
networks:
- nifi-network
networks:
nifi-network:
driver: bridge