Homelab/valkey.yaml
2024-06-14 16:13:10 +00:00

20 lines
453 B
YAML

valkey:
command: "valkey-server --save 30 1"
deploy:
replicas: 1
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
start_period: 20s
interval: 30s
timeout: 3s
hostname: "valkey"
image: "valkey/valkey:7.2-alpine"
logging:
driver: journald
networks:
- homelab
restart: unless-stopped
user: "10007:10007"
volumes:
- "/srv/data/docker/valkey/data:/data"