-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.16 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
version: '3'
services:
mbp:
container_name: mbp
build: .
links:
- mosquitto
- mongodb
- iot-device
ports:
- 8080:8080
mongodb:
container_name: mongodb
hostname: mongodb
image: amd64/mongo:5
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27017:27017
volumes:
- mongodb_volume:/data/db
mosquitto:
container_name: mosquitto
hostname: mosquitto
build:
context: ./mosquitto
args:
# NOTE: change this to use mosquitto setup with(out) auth plugin installed
is_secure: "false"
ports:
- 1883:1883
- 1884:1884
volumes:
- mosquitto_volume:/var/lib/mosquitto
networks:
default:
ipv4_address: 172.16.238.03
iot-device:
container_name: iot-device
build: ./testing/iot-device-dockerfile
ports:
- 22:22
networks:
default:
ipv4_address: 172.16.238.10
networks:
default:
ipam:
driver: default
config:
- subnet: "172.16.238.0/24"
- subnet: "2001:3984:3989::/64"
volumes:
mosquitto_volume:
mongodb_volume: