-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.25 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
version: '3.8'
services:
redis:
image: redis:7.2-alpine
container_name: throttler-redis
command: redis-server /usr/local/etc/redis/redis.conf --requirepass ${DOCKER_REDIS_PASSWORD}
volumes:
- ./docker/redis/redis.conf:/usr/local/etc/redis/redis.conf:ro
- redis-data:/data
ports:
- "127.0.0.1:6379:6379"
restart: unless-stopped
networks:
- throttler-net
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
healthcheck:
test: ["CMD", "redis-cli", "-a", "${DOCKER_REDIS_PASSWORD}", "ping"]
interval: 10s
timeout: 5s
retries: 3
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
redis-commander:
image: rediscommander/redis-commander:latest
container_name: throttler-redis-commander
environment:
- REDIS_HOSTS=local:redis:6379:0:${DOCKER_REDIS_PASSWORD}
ports:
- "127.0.0.1:8081:8081"
restart: unless-stopped
depends_on:
redis:
condition: service_healthy
networks:
- throttler-net
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
throttler-net:
driver: bridge
volumes:
redis-data: