-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
166 lines (155 loc) · 3.4 KB
/
docker-compose.yml
File metadata and controls
166 lines (155 loc) · 3.4 KB
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
160
161
162
163
164
165
166
version: "3"
networks:
app-tier:
driver: bridge
services:
gatling:
image: gatling
build:
context: .
dockerfile: ./gatling/Dockerfile
environment:
- LOCAL_DEVELOPMENT=true
- REMOTE_SERVER=ws://pathfinder:9000/
- JAVA_OPTS=-Dusers=1000 -Dduration=60
volumes:
- ./gatling/conf:/opt/gatling/conf
- ./gatling/user-files:/opt/gatling/user-files
- ./gatling/results:/opt/gatling/results
links:
- pathfinder
depends_on:
- pathfinder
networks:
- app-tier
tty: true
pathfinder:
image: openmatchmaking/pathfinder:latest
volumes:
- ./pathfinder-config.yml:/bench/pathfinder-config.yml
ports:
- 9000:9000
environment:
- CONFIG_PATH=/bench/pathfinder-config.yml
- LISTENED_IP=0.0.0.0
- LISTENED_PORT=9000
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USER=user
- RABBITMQ_PASSWORD=password
- RABBITMQ_VHOST=vhost
- LOG_LEVEL=warn
- WAIT_FOR_RABBITMQ=30
depends_on:
- rabbitmq
- microservice_auth
links:
- rabbitmq
networks:
- app-tier
tty: true
microservice_echo:
image: microservice-echo
build:
context: .
dockerfile: ./microservice-echo/Dockerfile
environment:
- APP_DEBUG=False
- APP_SERVER=simplerun
- AMQP_HOST=rabbitmq
- AMQP_USERNAME=user
- AMQP_PASSWORD=password
- AMQP_VHOST=vhost
- WAIT_FOR_RABBITMQ=30
volumes:
- ./microservice-echo:/code
depends_on:
- rabbitmq
- microservice_auth
links:
- rabbitmq
networks:
- app-tier
tty: true
microservice_auth:
image: openmatchmaking/microservice-auth:0.2.1
environment:
- APP_DEBUG=False
- APP_SERVER=sanic
- APP_CONFIG_PATH=./config.py
- APP_WORKERS=4
- REDIS_HOST=redis
- REDIS_MIN_SIZE_POOL=100
- REDIS_MAX_SIZE_POOL=1000
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_HOST=mongodb
- MONGODB_DATABASE=auth
- SERVICE_HOST=rabbitmq
- SERVICE_PORT=15672
- WAIT_FOR_MONGODB=30
- WAIT_FOR_RABBITMQ=30
- WAIT_FOR_SERVICE=30
depends_on:
- rabbitmq
- mongodb
- redis
links:
- rabbitmq
- mongodb
- redis
networks:
- app-tier
tty: true
mongodb:
image: bitnami/mongodb:4.1
ports:
- 27017:27017
environment:
- MONGODB_USERNAME=user
- MONGODB_PASSWORD=password
- MONGODB_DATABASE=auth
- MONGODB_ROOT_PASSWORD=root
networks:
- app-tier
mongodb_ui:
image: adicom/admin-mongo:latest
ports:
- 1234:1234
environment:
- CONN_NAME=mongodb_connection
- DB_USERNAME=root
- DB_PASSWORD=root
- DB_HOST=mongodb
depends_on:
- mongodb
networks:
- app-tier
redis:
image: redis:latest
ports:
- 6379:6379
networks:
- app-tier
redis_ui:
image: tenstartups/redis-commander:latest
command: --redis-host redis
ports:
- 8082:8081
depends_on:
- redis
links:
- redis:redis
networks:
- app-tier
rabbitmq:
image: bitnami/rabbitmq:latest
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_USERNAME=user
- RABBITMQ_PASSWORD=password
- RABBITMQ_VHOST=vhost
networks:
- app-tier