-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (75 loc) · 1.6 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
version: '3'
services:
nextdom-v2:
build:
context: install
image: nextdom-v2
container_name: nextdom-v2
restart: always
ports:
- 1880:1880/tcp
- 1883:1883/tcp
networks:
- nextdom
volumes:
- ./data/mqtt:/var/lib/mosquitto
- ./data/nodered:/data
environment:
- MOSQUITTO_USER=${MOSQUITTO_USER}
- MOSQUITTO_PASSWORD=${MOSQUITTO_PASSWORD}
- MONGODB_USER=${MONGODB_USER}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}
- MONGODB_DATABASE=${MONGODB_DATABASE}
nextdom-db:
build:
context: db
image: nextdom-db
hostname: nextdom-db
container_name: nextdom-db
restart: always
ports:
- 27017:27017
networks:
- nextdom
volumes:
- ./data/db:/data/db/nextdom
tmpfs:
- /nextdomstate
environment:
- MONGODB_USER=${MONGODB_USER}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}
nextdom-logic:
build:
context: logic
image: nextdom-logic
container_name: nextdom-logic
restart: always
networks:
- nextdom
environment:
- MOSQUITTO_USER=${MOSQUITTO_USER}
- MOSQUITTO_PASSWORD=${MOSQUITTO_PASSWORD}
- MONGODB_USER=${MONGODB_USER}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}
- MONGODB_DATABASE=${MONGODB_DATABASE}
# nextdom-api:
# build:
# context: rest
# image: nextdom-api
# container_name: nextdom-api
# restart: always
# ports:
# - 3000:3000
# networks:
# - nextdom
# adminer:
# image: adminer:latest
# restart: always
# networks:
# - nextdom
# ports:
# - 9080:8080
networks:
nextdom:
driver: bridge
name: nextdom