-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
150 lines (149 loc) · 4.14 KB
/
docker-compose.yaml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: "3.9"
services:
pyrrha-mariadb:
container_name: pyrrha-mariadb
image: pyrrha-mariadb
build:
context: ../Pyrrha-Database
dockerfile: Dockerfile
restart: always
ports:
- "3306:3306"
volumes:
- ../Pyrrha-Database/data:/var/lib/mysql
user: mysql
environment:
- MARIADB_ROOT_PASSWORD=${MDB_PASSWORD}
pyrrha-wss:
container_name: pyrrha-wss
build:
context: ../Pyrrha-WebSocket-Server
dockerfile: Dockerfile
image: pyrrha-wss
restart: always
ports:
- "8080:8080"
environment:
- NODE_ENV=development
volumes:
- /user-app/node_modules
- ../Pyrrha-WebSocket-Server:/user-app
pyrrha-mqttclient:
container_name: pyrrha-mqttclient
build:
context: ../Pyrrha-MQTT-Client
dockerfile: Dockerfile
depends_on:
- pyrrha-mariadb
- pyrrha-wss
- pyrrha-mqttserver
image: pyrrha-mqttclient
restart: always
env_file:
- ../Pyrrha-MQTT-Client/.env.docker
environment:
- MARIADB_PASSWORD=${MDB_PASSWORD}
volumes:
- /usr/src/app/node_modules
- ../Pyrrha-MQTT-Client:/usr/src/app
pyrrha-rulesdecision:
container_name: pyrrha-rulesdecision
build:
context: ../Pyrrha-Rules-Decision
dockerfile: Dockerfile
depends_on:
- pyrrha-mariadb
image: pyrrha-rulesdecision
restart: always
env_file:
- ../Pyrrha-Rules-Decision/src/.env.docker
environment:
- MARIADB_PASSWORD=${MDB_PASSWORD}
pyrrha-api-main:
container_name: pyrrha-api-main
build:
context: ../Pyrrha-Dashboard/pyrrha-dashboard/api-main
dockerfile: Dockerfile
depends_on:
- pyrrha-mariadb
- pyrrha-wss
image: pyrrha-api-main
restart: always
ports:
- "5000:5000"
env_file:
- ../Pyrrha-Dashboard/pyrrha-dashboard/api-main/.env.docker
environment:
- MARIADB_PASSWORD=${MDB_PASSWORD}
pyrrha-api-auth:
container_name: pyrrha-api-auth
build:
context: ../Pyrrha-Dashboard/pyrrha-dashboard/api-auth
dockerfile: Dockerfile
depends_on:
- pyrrha-api-main
image: pyrrha-api-auth
restart: always
ports:
- "4000:4000"
pyrrha-mqttserver:
container_name: pyrrha-mqttserver
image: vernemq/vernemq:1.12.3
restart: always
environment:
DOCKER_VERNEMQ_ALLOW_ANONYMOUS: "off"
DOCKER_VERNEMQ_ACCEPT_EULA: "yes"
DOCKER_VERNEMQ_PLUGINS__VMQ_DIVERSITY: "on"
DOCKER_VERNEMQ_PLUGINS__VMQ_PASSWD: "off"
DOCKER_VERNEMQ_PLUGINS__VMQ_ACL: "off"
DOCKER_VERNEMQ_VMQ_DIVERSITY__AUTH_MYSQL__ENABLED: "on"
DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__HOST: "pyrrha-mariadb"
DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__PORT: 3306
DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__USER: "root"
DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__PASSWORD: "${MDB_PASSWORD}"
DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__DATABASE: "pyrrha"
DOCKER_VERNEMQ_VMQ_DIVERSITY__MYSQL__PASSWORD_HASH_METHOD: "sha256"
ports:
- "1883:1883"
- "8888:8888"
expose:
- 1883
pyrrha-dashboard:
container_name: pyrrha-dashboard
build:
context: ../Pyrrha-Dashboard/pyrrha-dashboard
dockerfile: Dockerfile.dev
depends_on:
- pyrrha-api-auth
- pyrrha-api-main
- pyrrha-mqttclient
- pyrrha-rulesdecision
- pyrrha-mqttserver
image: pyrrha-dashboard
restart: always
ports:
- "3000:3000"
environment:
- REACT_APP_MAIN_PROXY=http://pyrrha-api-main:5000
- REACT_APP_AUTH_PROXY=http://pyrrha-api-auth:4000
- REACT_APP_WEBSOCKET_URL=ws://localhost:8080
volumes:
- /app/node_modules
- ../Pyrrha-Dashboard/pyrrha-dashboard:/app
stdin_open: true
pyrrha-simulator:
container_name: pyrrha-simulator
build:
context: ../Pyrrha-Sensor-Simulator/action
dockerfile: Dockerfile.dev
image: pyrrha-simulator
depends_on:
- pyrrha-mqttserver
env_file:
- ../Pyrrha-Sensor-Simulator/action/.env.docker
restart: always
environment:
- NODE_ENV=development
volumes:
- /user-app/node_modules
- ../Pyrrha-Sensor-Simulator/action:/user-app