-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
230 lines (230 loc) · 8.16 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
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
227
228
229
230
version: "2"
services:
all-all-aws-connector:
depends_on:
- config-store
environment:
CONNECTORS: nat.create.aws,nat.update.aws,nat.delete.aws,network.create.aws,network.delete.aws,route53.create.aws,route53.delete.aws,route53.update.aws,s3.create.aws,s3.update.aws,s3.delete.aws,elb.create.aws,elb.delete.aws,elb.update.aws,vpc.create.aws,vpc.delete.aws,instance.delete.aws,instance.update.aws,instance.create.aws,firewall.create.aws,firewall.update.aws,firewall.delete.aws,ebs_volume.create.aws,ebs_volume.delete.aws,rds_cluster.create.aws,rds_cluster.update.aws,rds_cluster.delete.aws,rds_instance.create.aws,rds_instance.update.aws,rds_instance.delete.aws,nats.find.aws,networks.find.aws,route53s.find.aws,s3s.find.aws,elbs.find.aws,vpcs.find.aws,instances.find.aws,firewalls.find.aws,ebs_volumes.find.aws,rds_clusters.find.aws,rds_instances.find.aws,internet_gateway.create.aws,internet_gateway.delete.aws,internet_gateways.find.aws,iam_role.create.aws,iam_role.delete.aws,iam_roles.find.aws,iam_policy.create.aws,iam_policy.delete.aws,iam_policies.find.aws,iam_instance_profile.create.aws,iam_instance_profile.delete.aws,iam_instance_profiles.find.aws
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/all-all-aws-connector:3.4.0
links:
- nats
restart: always
all-all-azure-connector:
depends_on:
- config-store
environment:
CONNECTORS: public_ip.create.azure,public_ip.update.azure,public_ip.delete.azure,public_ips.find.azure,virtual_network.create.azure,virtual_network.update.azure,virtual_network.delete.azure,virtual_networks.find.azure,resource_group.create.azure,resource_group.update.azure,resource_group.delete.azure,resource_groups.find.azure,subnet.create.azure,subnet.update.azure,subnet.delete.azure,subnets.find.azure,network_interface.create.azure,network_interface.update.azure,network_interface.delete.azure,network_inerfaces.find.azure,storage_account.create.azure,storage_account.update.azure,storage_account.delete.azure,storage_accounts.find.azure,storage_container.create.azure,storage_container.update.azure,storage_container.delete.azure,storage_containers.find.azure,virtual_machine.create.azure,virtual_machine.update.azure,virtual_machine.delete.azure,virtual_machines.find.azure,lb.create.azure,lb.update.azure,lb.deletev,lbs.find.azure,sql_server.create.azure,sql_server.update.azure,sql_server.delete.azure,sql_servers.find.azure,local_network_gateway.create.azure,local_network_gateway.update.azure,local_network_gateway.delete.azure,local_network_gateways.find.azure,network_security_group.create.azure,network_security_group.update.azure,network_security_group.delete.azure,network_security_groups.find.azure,sql_database.create.azure,sql_database.update.azure,sql_database.delete.azure,sql_databases.find.azure,availability_set.create.azure,availability_set.update.azure,availability_set.delete.azure,availability_sets.find.azure,managed_disk.create.azure,managed_disk.update.azure,managed_disk.delete.azure,managed_disks.find.azure
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/all-all-azure-connector:3.4.0
links:
- nats
restart: always
all-all-fake-connector:
depends_on:
- config-store
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/all-all-fake-connector:3.4.0
links:
- nats
restart: always
all-all-vcloud-connector:
depends_on:
- config-store
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/all-all-vcloud-connector:3.4.0
links:
- nats
restart: always
api-gateway:
depends_on:
- config-store
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
JWT_SECRET: GENERATEDJWTSECRET
NATS_URI: nats://nats:4222
image: quay.io/r3labs/api-gateway:3.4.0
links:
- nats
ports:
- 8080:8080
restart: always
authenticator:
depends_on:
- config-store
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
JWT_SECRET: GENERATEDJWTSECRET
NATS_URI: nats://nats:4222
image: quay.io/r3labs/authenticator:3.4.0
links:
- nats
restart: always
authorization-store:
depends_on:
- config-store
- postgres
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/authorization-store:3.4.0
links:
- nats
restart: always
config-store:
entrypoint: ./config-store -config /etc/ernest/config.json
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/config-store:3.4.0
links:
- nats
restart: always
volumes:
- ./config/config-store/:/etc/ernest/
datacenter-store:
depends_on:
- config-store
- postgres
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/datacenter-store:3.4.0
links:
- nats
restart: always
definition-mapper:
depends_on:
- config-store
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/definition-mapper:3.4.0
links:
- nats
- postgres
restart: always
logger:
depends_on:
- config-store
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
ERNEST_LOG_CONFIG: /etc/ernest/
ERNEST_LOG_FILE: /var/logs/ernest.log
JWT_SECRET: GENERATEDJWTSECRET
NATS_URI: nats://nats:4222
image: quay.io/r3labs/logger:3.4.0
links:
- nats
ports:
- 22001:22001
restart: always
volumes:
- ./logs/:/var/logs/
- ./config/:/etc/ernest/
monit:
depends_on:
- config-store
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
JWT_SECRET: GENERATEDJWTSECRET
NATS_URI: nats://nats:4222
image: quay.io/r3labs/monit:3.4.0
links:
- nats
ports:
- 22000:22000
restart: always
nats:
image: nats
ports:
- 4222:4222
restart: always
nginx:
image: nginx:1.13.5-alpine
links:
- api-gateway:api-gateway
- monit:monit
- logger:logger
ports:
- 443:443
restart: always
volumes:
- ./config/nginx/ernest.local:/etc/nginx/conf.d/default.conf
- ./config/nginx/ernest.key:/etc/nginx/conf.d/ernest.key
- ./config/nginx/ernest.crt:/etc/nginx/conf.d/ernest.crt
postgres:
environment:
DB_NAME: users,projects,environments,usage,authorizations,policies
image: postgres:9.6.5-alpine
restart: always
volumes:
- ./config/postgres:/docker-entrypoint-initdb.d
- ./postgres/data:/var/lib/postgresql/data
scheduler:
depends_on:
- config-store
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/scheduler:3.4.0
links:
- nats
- postgres
restart: always
service-store:
depends_on:
- config-store
- postgres
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/service-store:3.4.0
links:
- nats
restart: always
usage-store:
depends_on:
- config-store
- postgres
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/usage-store:3.4.0
links:
- nats
restart: always
user-store:
depends_on:
- config-store
- postgres
environment:
ERNEST_CRYPTO_KEY: CRYPTO_KEY_TEMPLATE
ERNEST_EDITION: community
NATS_URI: nats://nats:4222
image: quay.io/r3labs/user-store:3.4.0
links:
- nats
restart: always
networks: {}