-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 957 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
services:
redis:
image: redis:7
container_name: benchmark-redis
ports:
- "6379:6379"
command: redis-server --save "" --appendonly no --maxmemory 1gb --maxmemory-policy volatile-lru
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
deploy:
resources:
limits:
cpus: "2"
memory: 2G
cap_add:
- SYS_RESOURCE
networks:
- benchmark_network
valkey:
image: valkey/valkey:8.1
container_name: benchmark-valkey
ports:
- "8080:6379"
command: valkey-server --save "" --appendonly no --maxmemory 1gb --maxmemory-policy volatile-lru
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
deploy:
resources:
limits:
cpus: "2"
memory: 2G
cap_add:
- SYS_RESOURCE
networks:
- benchmark_network
networks:
benchmark_network:
driver: bridge