forked from AbdelStark/deathnote-contributions-feeder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackend.docker-compose.yml
More file actions
225 lines (211 loc) · 5.19 KB
/
backend.docker-compose.yml
File metadata and controls
225 lines (211 loc) · 5.19 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
version: "3.8"
services:
db:
labels:
type: infrastructure
extends:
file: docker-compose.yml
service: db
rabbitmq:
labels:
type: infrastructure
extends:
file: docker-compose.yml
service: rabbitmq
hasura:
labels:
type: infrastructure
extends:
file: docker-compose.yml
service: hasura
environment:
BACKEND_GRAPHQL_URL: ${BACKEND_GRAPHQL_URL:-http://api:8000/graphql}
GITHUB_PROXY_GRAPHQL_URL: ${GITHUB_PROXY_GRAPHQL_URL:-http://github-proxy:8001/graphql}
DUSTY_BOT_GRAPHQL_URL: ${DUSTY_BOT_GRAPHQL_URL:-http://dusty-bot:8002/graphql}
hasura-console:
labels:
type: infrastructure
container_name: hasura-console
image: node:18-bullseye
volumes:
- .:/app
command: bash -c "cd /app/hasura && yarn && yarn start"
ports:
- 9695:9695
healthcheck:
test: curl -f http://localhost:9695 || exit 1
interval: 2s
timeout: 1s
retries: 30
environment:
HASURA_GRAPHQL_ENDPOINT: http://hasura:8080
hasura-auth:
labels:
type: infrastructure
extends:
file: docker-compose.yml
service: hasura-auth
api:
labels:
type: backend
container_name: api
image: rust:1.66
depends_on:
db:
condition: service_healthy
hasura-auth:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- .:/app
- cargo-cache:/usr/local/cargo
command: bash -c "cd /app && cargo run -p api"
ports:
- 8000:8000
healthcheck:
test: curl -f http://localhost:8000 || exit 1
interval: 2s
timeout: 1s
retries: 30
environment:
DATABASE_URL: postgres://postgres:postgres@db/marketplace_db
AMQP_URL: amqp://rabbitmq:5672/%2f
GRAPHQL_BASE_URL: http://hasura:8080/v1/graphql
github-proxy:
labels:
type: backend
container_name: github-proxy
image: rust:1.66
volumes:
- .:/app
- cargo-cache:/usr/local/cargo
command: bash -c "cd /app && cargo run -p github-proxy"
ports:
- 8001
healthcheck:
test: curl -f http://localhost:8001 || exit 1
interval: 2s
timeout: 1s
retries: 30
dusty-bot:
labels:
type: backend
container_name: dusty-bot
image: rust:1.66
depends_on:
rabbitmq:
condition: service_healthy
volumes:
- .:/app
- cargo-cache:/usr/local/cargo
command: bash -c "cd /app && cargo run -p dusty-bot"
ports:
- 8002
healthcheck:
test: curl -f http://localhost:8002 || exit 1
interval: 2s
timeout: 1s
retries: 30
environment:
AMQP_URL: amqp://rabbitmq:5672/%2f
action-dequeuer:
labels:
type: backend
container_name: action-dequeuer
image: rust:1.66
depends_on:
rabbitmq:
condition: service_healthy
volumes:
- .:/app
- cargo-cache:/usr/local/cargo
command: bash -c "cd /app && cargo run -p dusty-bot --bin action-dequeuer"
environment:
AMQP_URL: amqp://rabbitmq:5672/%2f
event-store:
labels:
type: backend
container_name: event-store
image: rust:1.66
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- .:/app
- cargo-cache:/usr/local/cargo
command: bash -c "cd /app && cargo run -p event-store"
environment:
DATABASE_URL: postgres://postgres:postgres@db/marketplace_db
AMQP_URL: amqp://rabbitmq:5672/%2f
event-listeners:
labels:
type: backend
container_name: event-listeners
image: rust:1.66
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- .:/app
- cargo-cache:/usr/local/cargo
command: bash -c "cd /app && cargo run -p event-listeners"
environment:
DATABASE_URL: postgres://postgres:postgres@db/marketplace_db
AMQP_URL: amqp://rabbitmq:5672/%2f
github-indexer:
labels:
type: backend
container_name: github-indexer
image: rust:1.66
depends_on:
rabbitmq:
condition: service_healthy
api:
condition: service_healthy
volumes:
- .:/app
- cargo-cache:/usr/local/cargo
command: bash -c "cd /app && cargo run -p event-listeners --bin github-indexer"
environment:
DATABASE_URL: postgres://postgres:postgres@db/marketplace_db
AMQP_URL: amqp://rabbitmq:5672/%2f
frontend:
labels:
type: frontend
container_name: frontend
image: node:18-bullseye
volumes:
- .:/app
command: bash -c "cd /app && yarn && yarn dev --host"
ports:
- 5173:5173
healthcheck:
test: curl -f http://localhost:5173 || exit 1
interval: 2s
timeout: 1s
retries: 30
storybook:
labels:
type: frontend
container_name: storybook
image: node:18-bullseye
volumes:
- .:/app
command: bash -c "cd /app && yarn && yarn storybook"
ports:
- 6006:6006
healthcheck:
test: curl -f http://localhost:6006 || exit 1
interval: 2s
timeout: 1s
retries: 30
volumes:
cargo-cache:
rabbitmq:
db:
driver: local