-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.for_macos_hosts.yml
125 lines (114 loc) · 3.78 KB
/
docker-compose.for_macos_hosts.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
120
121
122
123
124
125
version: '3'
services:
api:
build: ./api/
hostname: "api"
depends_on:
- rabbitmq
- hello_microservice
- hello2_microservice
- event_listener_registrar_microservice
- event_receiver_microservice
ports:
- "8880:8080"
command: ["./wait-for-it.sh", "rabbitmq:5672", "-s", "-t", "480", "--", "python", "-u", "api.py"]
restart: always
hello_microservice:
build: ./hello_microservice/
depends_on:
- rabbitmq
command: ["./wait-for-it.sh", "rabbitmq:5672", "-s", "-t", "480", "--", "nameko", "run", "--broker", "amqp://guest:guest@rabbitmq", "hello_microservice"]
hello2_microservice:
build: ./hello2_microservice/
depends_on:
- rabbitmq
command: ["./wait-for-it.sh", "rabbitmq:5672", "-s", "-t", "480", "--", "nameko", "run", "--broker", "amqp://guest:guest@rabbitmq", "hello2_microservice"]
event_listener_registrar_microservice:
build: event_listener_registrar_microservice/
depends_on:
- rabbitmq
volumes:
- ./common_lib:/app/common_lib
command: ["./wait-for-it.sh", "rabbitmq:5672", "-s", "-t", "480", "--", "nameko", "run", "--broker", "amqp://guest:guest@rabbitmq", "event_listener_registrar_microservice"]
restart: always
event_receiver_microservice:
build: ./event_receiver_microservice/
depends_on:
- rabbitmq
volumes:
- ./common_lib:/app/common_lib
command: ["./wait-for-it.sh", "rabbitmq:5672", "-s", "-t", "480", "--", "nameko", "run", "--broker", "amqp://guest:guest@rabbitmq", "event_receiver_microservice"]
restart: always
rabbitmq:
image: "rabbitmq:3-management"
hostname: rabbitmq
# ports:
# - "15672:15672"
# - "5672:5672"
restart: always
redis:
image: "redis:alpine"
volumes:
- ./redis_data:/data
# ports:
# - "6379:6379"
restart: always
event_dispatcher:
build: ./event_dispatcher/
hostname: "event_dispatcher"
depends_on:
- rabbitmq
- event_listener_registrar_microservice
- event_receiver_microservice
- mongo
volumes:
- ./common_lib:/app/common_lib
command: ["./wait-for-it.sh", "rabbitmq:5672", "-s", "-t", "480", "--", "./wait-for-it.sh", "mongo:27017", "--", "python", "-u", "event_dispatcher.py"]
restart: always
retro_event_retriever:
build: ./retro_event_retriever/
hostname: "retro_event_retriever"
depends_on:
- rabbitmq
- event_listener_registrar_microservice
- event_receiver_microservice
- mongo
- event_dispatcher
volumes:
- ./common_lib:/app/common_lib
command: ["./wait-for-it.sh", "rabbitmq:5672", "-s", "-t", "480", "--", "./wait-for-it.sh", "mongo:27017", "--", "python", "-u", "retro_event_retriever.py"]
restart: always
mongo:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
# - ./mongodb/:/home/mongodb/
# - ./data/db/:/data/db/
# - ./data/configdb/:/data/configdb/
# - ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
### Use this on MacOS hosts, MongoDB and the MacOS FS mapping has issues, only volume mapping will work properly
- mongodb:/home/mongodb/
- mongodb_data_db:/data/db/
- mongodb_data_configdb:/data/configdb/
- mongodb_docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d/
# ports:
# - 27017:27017
command: --storageEngine wiredTiger --directoryperdb
restart: always
# mongo-express:
# image: mongo-express
# depends_on:
# - mongo
# environment:
# ME_CONFIG_MONGODB_ADMINUSERNAME: root
# ME_CONFIG_MONGODB_ADMINPASSWORD: example
# ports:
# - 8081:8081
# restart: always
volumes:
mongodb:
mongodb_data_db:
mongodb_data_configdb:
mongodb_docker-entrypoint-initdb.d: