-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
56 lines (52 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
version: '3.8'
services:
app1:
container_name: rl-app1
build: .
ports:
- 8085:8080
depends_on:
- redis
command:
[
'redisSlidingWindowCounter',
'--redisURL',
'redis://redis:6379'
]
app2:
container_name: rl-app2
build: .
ports:
- 8086:8080
depends_on:
- redis
command:
[
'redisSlidingWindowCounter',
'--redisURL',
'redis://redis:6379'
]
redis:
container_name: rl-redis
image: redis:7.2-alpine
restart: unless-stopped
ports:
- 6379:6379
command: [ 'redis-server', '--appendonly', 'yes' ]
volumes:
- redis-volume:/data/redis
redis-commander:
container_name: rl-redis-commander
image: rediscommander/redis-commander:latest
restart: unless-stopped
environment:
- REDIS_HOSTS=local:redis:6379
- HTTP_USER=root
- HTTP_PASSWORD=qwerty
ports:
- 8087:8081
depends_on:
- redis
volumes:
redis-volume:
driver: local