-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
101 lines (91 loc) · 2.09 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
version: "3.9"
services:
mongo:
container_name: mongodb
image: mongo:latest
restart: always
ports:
- 27017:27017
volumes:
- ./docker-entrypoint-initdb.d/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
brightness_service:
container_name: brightness
depends_on:
- mongo
build:
context: brightnessService
dockerfile: Dockerfile
ports:
- 8893:8893
temperature_service:
container_name: temperature
depends_on:
- mongo
build:
context: temperatureService
dockerfile: Dockerfile
ports:
- 8895:8895
humidity_service:
container_name: humidity
depends_on:
- mongo
build:
context: humidityService
dockerfile: Dockerfile
ports:
- 8891:8891
soil_moisture_service:
container_name: soil_moisture
depends_on:
- mongo
build:
context: soilMoistureService
dockerfile: Dockerfile
ports:
- 8894:8894
operation_service:
container_name: operation
depends_on:
- mongo
build:
context: operationService
dockerfile: Dockerfile
ports:
- 8896:8896
client_communication_gateway:
container_name: client_communication
build:
context: clientCommunicationGateway
dockerfile: Dockerfile
extra_hosts:
- host.docker.internal:host-gateway
ports:
- 8890:8890
- 1234:1234
- 1235:1235
- 1236:1236
greenhouse_communication_gateway:
container_name: greenhouse_communication
depends_on:
- greenhouse_service
build:
context: greenhouseCommunicationGateway
dockerfile: Dockerfile
ports:
- 8892:8892
greenhouse_service:
container_name: greenhouse #name that must be used as host in http request between containers
depends_on:
- mongo
- temperature_service
- brightness_service
- soil_moisture_service
- humidity_service
- operation_service
- client_communication_gateway
build:
context: greenhouseService
dockerfile: Dockerfile
ports:
- 8889:8889