-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
226 lines (199 loc) · 4.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
226 lines (199 loc) · 4.63 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
version: '2'
services:
# ------------------------------
# RabbitMQ
# ------------------------------
rmq_data:
image: busybox
volumes:
- /var/lib/rabbitmq
rmq:
ports:
- "15672:15672"
- "5672:5672"
image: rabbitmq:3-management
logging:
driver: "none"
volumes_from:
- rmq_data
rmq_exchanges:
image: tutum/curl:latest # image with curl installed
links:
- rmq
volumes:
- .:/app
command: "/app/create-exchanges.sh"
# ------------------------------
# Elasticsearch
# ------------------------------
es_data:
image: busybox
volumes:
- /usr/share/elasticsearch/data
elasticsearch:
ports:
- "9200:9200"
- "9300:9300"
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
# volumes_from:
# - es_data
# ------------------------------
# Dynamo
# ------------------------------
dynamodb:
ports:
- "8000:8000"
logging:
driver: "none"
image: deangiberson/aws-dynamodb-local
# ------------------------------
# Postgres Transaction Service
# ------------------------------
transaction_service_postgres_data:
image: busybox
volumes:
- /var/lib/postgresql/data
transaction_service_postgres:
image: postgres:9.6
logging:
driver: "none"
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: txservice
POSTGRES_USER: txservice
POSTGRES_DB: txservice
volumes_from:
- transaction_service_postgres_data
# ------------------------------
# Postgres Charge Box Service
# ------------------------------
charge_box_service_postgres_data:
image: busybox
volumes:
- /var/lib/postgresql/data
charge_box_service_postgres:
image: mdillon/postgis:9.6
logging:
driver: "none"
ports:
- "5433:5432"
environment:
POSTGRES_PASSWORD: cbservice
POSTGRES_USER: cbservice
POSTGRES_DB: cbservice
volumes_from:
- charge_box_service_postgres_data
# ------------------------------
# Postgres Pricing Service
# ------------------------------
pricing_service_postgres_data:
image: busybox
volumes:
- /var/lib/postgresql/data
pricing_service_postgres:
image: postgres:9.6
ports:
- "5434:5432"
logging:
driver: "none"
environment:
POSTGRES_PASSWORD: prservice
POSTGRES_USER: prservice
POSTGRES_DB: prservice
volumes_from:
- pricing_service_postgres_data
# ------------------------------
# Postgres Receptionist
# ------------------------------
receptionist_postgres_data:
image: busybox
volumes:
- /var/lib/postgresql/data
receptionist_postgres:
image: postgres:9.6
logging:
driver: "none"
ports:
- "5435:5432"
environment:
POSTGRES_PASSWORD: receptionist
POSTGRES_USER: receptionist
POSTGRES_DB: receptionist
volumes_from:
- receptionist_postgres_data
# ------------------------------
# Backend, baby!
# ------------------------------
central-system:
image: central-system:latest
environment:
- VIRTUAL_HOST=cb.chargegrid.dev
links:
- rmq
- dynamodb
- charge-box-service
ports:
- "8080:8080"
depends_on:
- rmq_exchanges
charge-box-service:
image: charge-box-service:latest
links:
- charge_box_service_postgres:postgres
- rmq
depends_on:
- rmq_exchanges
transaction-service:
image: transaction-service:latest
links:
- rmq
- transaction_service_postgres:postgres
depends_on:
- rmq_exchanges
pricing-service:
image: pricing-service:latest
links:
- rmq
- pricing_service_postgres:postgres
depends_on:
- rmq_exchanges
log-service:
image: log-service:latest
links:
- rmq
- elasticsearch
depends_on:
- rmq_exchanges
receptionist:
image: receptionist:latest
links:
- receptionist_postgres:postgres
- transaction-service
- pricing-service
- central-system
- charge-box-service
ports:
- "8075:8075"
environment:
- VIRTUAL_HOST=api.chargegrid.dev
# ------------------------------
# Proxying all the things
# ------------------------------
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
logging:
driver: "none"
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro