forked from IPVS-AS/MBP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 779 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (37 loc) · 779 Bytes
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
version: '3'
services:
mbp:
container_name: mbp
build: .
links:
- mosquitto
- mongodb
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
volumes:
mosquitto_volume:
mongodb_volume: