-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
159 lines (148 loc) · 3.45 KB
/
docker-compose.dev.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
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
151
152
153
154
155
156
157
158
159
version: "3"
networks:
app-tier:
driver: bridge
volumes:
mongodb_data:
driver: local
services:
app:
build:
context: .
dockerfile: ./Dockerfile
image: microservice-matchmaking
environment:
- SPOTTER_AMQP_USERNAME=user
- SPOTTER_AMQP_PASSWORD=password
- SPOTTER_AMQP_HOST=rabbitmq
volumes:
- ./matchmaking:/app/
depends_on:
- microservice_auth
- microservice_player_stats
- microservice_strategist
- microservice_game_servers_pool
networks:
- app-tier
tty: true
microservice_auth:
image: openmatchmaking/microservice-auth:0.1.3
ports:
- 8000:8000
environment:
- APP_HOST=0.0.0.0
- APP_SERVER=sanic
- APP_CONFIG_PATH=./config.py
- REDIS_HOST=redis
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_HOST=mongodb
- MONGODB_DATABASE=microservices_db
- WAIT_FOR_MONGODB=30
- WAIT_FOR_REDIS=30
- WAIT_FOR_RABBITMQ=30
depends_on:
- rabbitmq
- mongodb
- redis
networks:
- app-tier
tty: true
microservice_strategist:
image: openmatchmaking/microservice-strategist:0.2.3
environment:
- APP_SERVER=simplerun
- APP_CONFIG_PATH=./config.py
- SERVICE_HOST=microservice_auth
- SERVICE_PORT=8000
- WAIT_FOR_RABBITMQ=30
- WAIT_FOR_SERVICE=30
depends_on:
- rabbitmq
- microservice_auth
networks:
- app-tier
tty: true
microservice_player_stats:
image: openmatchmaking/microservice-player-statistics:0.1.0
ports:
- 8001:8000
environment:
- APP_SERVER=sanic
- APP_CONFIG_PATH=./config.py
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_HOST=mongodb
- MONGODB_DATABASE=microservices_db
- SERVICE_HOST=microservice_auth
- SERVICE_PORT=8000
- WAIT_FOR_MONGODB=30
- WAIT_FOR_RABBITMQ=30
- WAIT_FOR_SERVICE=30
depends_on:
- rabbitmq
- mongodb
- microservice_auth
networks:
- app-tier
tty: true
microservice_game_servers_pool:
image: openmatchmaking/microservice-game-servers-pool:0.1.2
ports:
- 8002:8000
environment:
- APP_HOST=0.0.0.0
- APP_DEBUG=False
- APP_SERVER=sanic
- APP_CONFIG_PATH=./config.py
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_HOST=mongodb
- MONGODB_DATABASE=microservices_db
- SERVICE_HOST=microservice_auth
- SERVICE_PORT=8000
- WAIT_FOR_MONGODB=30
- WAIT_FOR_RABBITMQ=30
- WAIT_FOR_SERVICE=30
depends_on:
- mongodb
- rabbitmq
- microservice_auth
networks:
- app-tier
tty: true
rabbitmq:
image: bitnami/rabbitmq:3.7
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_USERNAME=user
- RABBITMQ_PASSWORD=password
networks:
- app-tier
tty: true
mongodb:
image: bitnami/mongodb:4
ports:
- 27017:27017
environment:
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_DATABASE=microservices_db
- MONGODB_ROOT_PASSWORD=root
volumes:
- mongodb_data:/bitnami
networks:
- app-tier
tty: true
redis:
image: bitnami/redis:latest
ports:
- 6379:6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_EXTRA_FLAGS=--maxmemory 100mb
networks:
- app-tier
tty: true