forked from microscaling/microbadger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.02 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
version: "3"
services:
api:
build: .
command: "api"
links:
- nats
- postgres
ports:
- "8080:8080"
env_file: .env
environment:
- NATS_SEND_QUEUE_NAME=$MB_IMAGE_QUEUE_NAME
depends_on:
- nats
- postgres
inspector:
build: .
command: "inspector"
links:
- nats
- postgres
env_file: .env
environment:
- NATS_RECEIVE_QUEUE_NAME=$MB_IMAGE_QUEUE_NAME
- NATS_SEND_QUEUE_NAME=$MB_SIZE_QUEUE_NAME
depends_on:
- nats
- postgres
size:
build: .
command: "size"
links:
- nats
- postgres
env_file: .env
environment:
- NATS_RECEIVE_QUEUE_NAME=$MB_SIZE_QUEUE_NAME
depends_on:
- nats
- postgres
notifier:
build: .
entrypoint: "/notifier"
links:
- nats
- postgres
env_file: .env
depends_on:
- nats
- postgres
nats:
image: nats:2.1.7-alpine
ports:
- "4222"
postgres:
build: postgres
ports:
- "5432"