-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
45 lines (41 loc) · 1.16 KB
/
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
---
version: '3'
services:
# We are setting up redis with appendfsync set to always here. This ensures
# maximum data durability at the cost of performance.
# If you require high performance you might consider setting this to everysec
# instead which syncs to disk every second.
redis:
image: redis:latest
command: redis-server --appendonly yes --appendfsync always
volumes:
- redis_data:/data
ports:
- "6379:6379"
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
# Uncomment this if you want to run Worker / Coordinator nodes
# worker:
# image: ghcr.io/ls1intum/storage-benchmarking
# command: worker -d /tmp -g GROUP
# volumes:
# - "worker_data:/tmp"
# environment:
# REDIS_HOST: redis
# REDIS_PORT: 6379
# coordinator:
# image: ghcr.io/ls1intum/storage-benchmarking
# command: coordinator -g GROUP1 GROUP2 -f /app/job_files/blocks.ini
# environment:
# REDIS_HOST: redis
# REDIS_PORT: 6379
volumes:
redis_data:
driver: local
# worker_data:
# driver: local