This repository has been archived by the owner on May 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
186 lines (173 loc) · 4.5 KB
/
docker-compose.yaml
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
version: "3"
services:
auth_server:
command: yarn start
build:
context: nodejs
cache_from:
- node:12.2.0-alpine
env_file: .env
ports:
- 10000:10000
depends_on:
- rabbit
- postgres
- redis
environment:
NODE_LOG_LEVEL: info
SERVICE_NAME: auth_server
AUTH_SERVER: 10000
http_gateway:
command: yarn start
build:
context: nodejs
cache_from:
- node:12.2.0-alpine
env_file: .env
ports:
- 8081:8081
depends_on:
- rabbit
- postgres
- redis
environment:
NODE_LOG_LEVEL: info
SERVICE_NAME: http_gateway
REDIS_HOST: redis
REDIS_PORT: 6379
notification_server:
command: yarn start
build:
context: nodejs
cache_from:
- node:12.2.0-alpine
env_file: .env
ports:
- 9999:9999
depends_on:
- rabbit
- postgres
- redis
environment:
SERVICE_NAME: notification_server
REDIS_HOST: redis
REDIS_PORT: 6379
TWILIO_NUMBER: "+15005550006" # This number is safe to use https://www.twilio.com/docs/iam/test-credentials
ws_gateway:
command: yarn start
build:
context: nodejs
cache_from:
- node:12.2.0-alpine
env_file: .env
ports:
- 9080:9080
depends_on:
- rabbit
- redis
environment:
NODE_LOG_LEVEL: info
SERVICE_NAME: ws_gateway
REDIS_HOST: "redis"
REDIS_PORT: 6379
http_gateway_v1:
command: cargo watch -x 'run --bin http_gateway'
build:
context: rust
cache_from:
- securityunion/rust-dev:latest
env_file: .env
ports:
- 10001:10001
depends_on:
- rabbit
- postgres
- redis
environment:
RUST_LOG: "debug"
REDIS_URL: "redis://redis"
ROCKET_ENV: "dev"
RUST_BACKTRACE: 1
invitations_v1:
command: cargo watch -x 'run --bin invitations'
build:
context: rust
cache_from:
- securityunion/rust-dev:latest
env_file: .env
ports:
- "10002:10001"
depends_on:
- rabbit
- postgres
environment:
RUST_LOG: "debug"
ROCKET_ENV: "dev"
RUST_BACKTRACE: 1
emergency_v1:
command: cargo watch -x 'run --bin emergency'
build:
context: rust
cache_from:
- securityunion/rust-dev:latest
env_file: .env
ports:
- "10003:10001"
depends_on:
- rabbit
- postgres
environment:
RUST_LOG: "debug"
ROCKET_ENV: "dev"
RUST_BACKTRACE: 1
nanny:
command: cargo watch -x 'run --bin nanny'
build:
context: rust
cache_from:
- securityunion/rust-dev:latest
env_file: .env
depends_on:
- rabbit
- postgres
- redis
environment:
RUST_LOG: "info"
REDIS_URL: "redis://redis"
ROCKET_ENV: "dev"
RUST_BACKTRACE: 1
ONLINE_THRESHOLD_MINUTES: 10
# Middleware
dbmate:
build:
context: dbmate
cache_from:
- amacneil/dbmate
env_file: .env
environment:
DATABASE_URL: "postgres://${PG_USER}:${PG_PASS}@postgres:5432/${PG_DB}?sslmode=disable"
depends_on:
- postgres
postgres:
image: postgres:12
environment:
POSTGRES_PASSWORD: "docker"
PGPASSWORD: "docker"
ports:
- 5432
rabbit:
image: rabbitmq:3-management
environment:
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
RABBITMQ_DEFAULT_VHOST: "staging"
ports:
- 15672
redis:
image: redis:alpine
ports:
- 6379
swagger-editor:
image: swaggerapi/swagger-editor
ports:
- 8082:8080