-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 969 Bytes
/
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
version: '3'
services:
redis:
image: redis:alpine
container_name: redis-srv
ports:
- 6379:6379
redis-commander:
container_name: redis-commander-web
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
consumer_one:
container_name: go-consumer-one
build: '.'
environment:
REDIS_HOST: redis
STREAM: events
GROUP: GroupOne
depends_on:
- redis
restart: always
consumer_two:
container_name: go-consumer-two
build: '.'
environment:
REDIS_HOST: redis
STREAM: events
GROUP: GroupTwo
depends_on:
- redis
restart: always
consumer_three:
container_name: go-consumer-three
build: '.'
environment:
REDIS_HOST: redis
STREAM: events
GROUP: GroupTwo
depends_on:
- redis
restart: always