-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
119 lines (119 loc) · 2.84 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
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
version: "3"
services:
mongo:
container_name: mongo
hostname: mongo
image: "mongo:latest"
restart: always
ports:
- "27017:27017"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/db:/data/db
rabbit:
container_name: rabbit
image: rabbitmq:3.7-management-alpine
hostname: rabbit
restart: always
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
ports:
- "5672:5672"
mosquitto:
container_name: mosquitto
image: toke/mosquitto:latest
hostname: mosquitto
restart: always
ports:
- "1883:1883"
apollo:
build:
context: ./services/apollo
restart: always
ports:
- "3000:3000"
depends_on:
- mosquitto
- mongo
- rabbit
env_file:
- ./services/apollo/.env
- ./infrastructure/mongo/.env
- ./infrastructure/rabbit/.env
volumes:
- ./services/apollo/src:/usr/src/app/src:cached
# apple-homekit:
# build:
# context: ./services/apple-homekit
# restart: always
# network_mode: host
# depends_on:
# - apollo
# env_file:
# - ./services/apple-homekit/.env
# - ./infrastructure/rabbit/.env
# volumes:
# - ./services/apple-homekit/src:/usr/src/app/src:cached
automatic-action:
build:
context: ./services/automatic-action
restart: always
depends_on:
# - apple-homekit
- apollo
env_file:
- ./services/automatic-action/.env
- ./infrastructure/rabbit/.env
volumes:
- ./services/automatic-action/src:/usr/src/app/src:cached
client:
build:
context: ./services/client
restart: always
ports:
- "3001:3001"
depends_on:
- automatic-action
env_file:
- ./services/client/.env
- ./infrastructure/rabbit/.env
volumes:
- ./services/client/src:/usr/src/app/src:cached
# google-home:
# build:
# context: ./services/google-home
# restart: always
# depends_on:
# - client
# env_file:
# - ./services/google-home/.env
# - ./infrastructure/rabbit/.env
# volumes:
# - ./services/google-home/src:/usr/src/app/src:cached
mqtt-listener:
build:
context: ./services/mqtt-listener
restart: always
depends_on:
# - google-home
- client
env_file:
- ./services/mqtt-listener/.env
- ./infrastructure/rabbit/.env
- ./infrastructure/mosquitto/.env
volumes:
- ./services/mqtt-listener/src:/usr/src/app/src:cached
scheduled-action:
build:
context: ./services/scheduled-action
restart: always
depends_on:
- mqtt-listener
env_file:
- ./infrastructure/rabbit/.env
- ./services/scheduled-action/.env
volumes:
- ./services/scheduled-action/src:/usr/src/app/src:cached