forked from Christdej/eq_robot_mqtt_broker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 991 Bytes
/
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
version: "3"
services:
mqtt_broker:
build: ./broker
image: mqtt_broker:latest
container_name: mqtt_broker
stdin_open: true
tty: true
ports:
- "8888:8888"
- "1883:1883"
networks:
- local
environment:
- VERNEMQ_USER=${VERNEMQ_USER}
- VERNEMQ_PASSWORD=${VERNEMQ_PASSWORD}
mqtt_subscriber:
build: ./subscriber
image: mqtt_subscriber:latest
container_name: mqtt_subscriber
stdin_open: true
tty: true
depends_on:
- mqtt_broker
networks:
- local
environment:
- VERNEMQ_USER=${VERNEMQ_USER}
- VERNEMQ_PASSWORD=${VERNEMQ_PASSWORD}
mqtt_publisher:
build: ./publisher
image: mqtt_publisher:latest
container_name: mqtt_publisher
stdin_open: true
tty: true
depends_on:
- mqtt_broker
networks:
- local
environment:
- VERNEMQ_USER=${VERNEMQ_USER}
- VERNEMQ_PASSWORD=${VERNEMQ_PASSWORD}
networks:
local:
driver: bridge