This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
168 lines (155 loc) · 4.67 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
version: "3.7"
services:
vhost:
image: nginx
ports:
- 80:80
volumes:
- ./vhost.conf:/etc/nginx/conf.d/reverse.conf:ro
zaqar:
image: khaosdoctor/zaqar:latest
environment:
SENDGRID_APIKEY: $SENDGRID_APIKEY
DEFAULT_FROM_ADDRESS: [email protected]
DEFAULT_FROM_NAME: Chega.aí
RENDERER_LIST: zaqar-renderer-pug zaqar-renderer-mustache
mongodb:
image: mvertes/alpine-mongo:latest
volumes:
- ./mongodb/db:/data/db
- ./mongodb/configdb:/data/configdb
ports:
- "27017:27017"
jaeger:
container_name: jaeger
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
VIRTUAL_HOST: jaeger.lvh.me
VIRTUAL_PORT: 16686
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "9411:9411"
image: "jaegertracing/all-in-one:1.16"
ms-events:
build: ./ms-events
environment:
VIRTUAL_HOST: ms-events.lvh.me
JAEGER_AGENT_HOST: jaeger
JWT_SECRET: $JWT_SECRET
DATABASE_MONGODB_URI: mongodb://mongodb:27017
DATABASE_MONGODB_DBNAME: chegaai
MICROSERVICES_USER_URL: http://ms-users:3000
MICROSERVICES_GROUP_URL: http://ms-groups:3000
AZURE_STORAGE_ACCOUNT_NAME: $AZURE_STORAGE_ACCOUNT_NAME
AZURE_STORAGE_ACCOUNT_ACCESS_KEY: $AZURE_STORAGE_ACCOUNT_ACCESS_KEY
AZURE_STORAGE_CONTAINER_NAME: events-dev
command: ["npm", "run", "start:debug"]
depends_on:
- mongodb
- ms-users
- ms-groups
- vhost
ms-users:
build: ./ms-users
environment:
VIRTUAL_HOST: ms-users.lvh.me
JAEGER_AGENT_HOST: jaeger
DATABASE_MONGODB_URI: mongodb://mongodb:27017
DATABASE_MONGODB_DBNAME: chegaai
JWT_SECRET: $JWT_SECRET
JWT_AUDIENCE: $JWT_AUDIENCE
JWT_ISSUER: $JWT_ISSUER
command: ["npm", "run", "start:debug"]
depends_on:
- mongodb
- vhost
ms-groups:
build: ./ms-groups
environment:
VIRTUAL_HOST: ms-groups.lvh.me
JAEGER_AGENT_HOST: jaeger
DATABASE_MONGODB_URI: mongodb://mongodb:27017
DATABASE_MONGODB_DBNAME: chegaai
MICROSERVICE_PROFILE_URL: http://ms-profiles:3000
AZURE_STORAGE_ACCOUNT_NAME: $AZURE_STORAGE_ACCOUNT_NAME
AZURE_STORAGE_ACCOUNT_ACCESS_KEY: $AZURE_STORAGE_ACCOUNT_ACCESS_KEY
AZURE_STORAGE_CONTAINER_NAME: groups-dev
command: ["npm", "run", "start:debug"]
depends_on:
- mongodb
- ms-users
- vhost
ms-templates:
build: ./ms-templates
environment:
VIRTUAL_HOST: ms-templates.lvh.me
JAEGER_AGENT_HOST: jaeger
DATABASE_MONGODB_URI: mongodb://mongodb:27017
DATABASE_MONGODB_DBNAME: chegaai
MICROSERVICE_GROUP_URL: http://ms-groups:3000
AZURE_STORAGE_ACCOUNT_NAME: $AZURE_STORAGE_ACCOUNT_NAME
AZURE_STORAGE_ACCOUNT_ACCESS_KEY: $AZURE_STORAGE_ACCOUNT_ACCESS_KEY
AZURE_STORAGE_CONTAINER_NAME: templates-dev
command: ["npm", "run", "start:debug"]
depends_on:
- mongodb
- ms-groups
- vhost
ms-certificates:
build: ./ms-certificate
environment:
VIRTUAL_HOST: ms-certificates.lvh.me
JAEGER_AGENT_HOST: jaeger
DATABASE_MONGODB_URI: mongodb://mongodb:27017
DATABASE_MONGODB_DBNAME: chegaai
MICROSERVICE_PROFILE_URL: http://ms-profiles:3000
MICROSERVICE_EVENT_URL: http://ms-events:3000
MICROSERVICE_TEMPLATE_URL: http://ms-templates:3000
AZURE_STORAGE_ACCOUNT_NAME: $AZURE_STORAGE_ACCOUNT_NAME
AZURE_STORAGE_ACCOUNT_ACCESS_KEY: $AZURE_STORAGE_ACCOUNT_ACCESS_KEY
AZURE_STORAGE_CONTAINER_NAME: certificates-dev
depends_on:
- vhost
- mongodb
- ms-users
- ms-events
- ms-templates
api-gateway:
build: ./api-gateway
environment:
VIRTUAL_HOST: api-gateway.lvh.me
JAEGER_AGENT_HOST: jaeger
MAPS_FILE_URL: $API_GATEWAY_CONFIG
AUTH_JWT_AUDIENCE: $JWT_AUDIENCE
AUTH_JWT_ISSUER: $JWT_ISSUER
AUTH_JWT_SECRET: $JWT_SECRET
AUTH_ALGORITHMS: HS256
# NODE_ENV: production
depends_on:
- vhost
- ms-events
- ms-users
- ms-groups
- ms-templates
- ms-certificates
ms-profiles:
build: ./ms-profiles
environment:
VIRTUAL_HOST: ms-profiles.lvh.me
JAEGER_AGENT_HOST: jaeger
DATABASE_MONGODB_URI: mongodb://mongodb:27017
DATABASE_MONGODB_DBNAME: chegaai
CLIENTS_GROUP_URL: http://ms-groups:3000
AZURE_STORAGE_ACCOUNT_NAME: $AZURE_STORAGE_ACCOUNT_NAME
AZURE_STORAGE_ACCOUNT_ACCESS_KEY: $AZURE_STORAGE_ACCOUNT_ACCESS_KEY
AZURE_STORAGE_CONTAINER_NAME: profiles-dev
depends_on:
- vhost
- mongodb
volumes:
vhost.conf: