Skip to content

Commit

Permalink
feat: set redis-server to store data as non-volitile
Browse files Browse the repository at this point in the history
From Backend.AI 22.03, redis server stores not only message, cache and
volitile data, but also statistical data for live containers. Therefore
the data should be kept.
  • Loading branch information
inureyes committed May 2, 2022
1 parent 4afb584 commit 3e2123e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.halfstack-2203.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ services:
- half
ports:
- "8110:6379"
volumes:
- "./tmp/backend.ai-halfstack/${DATADIR_PREFIX:-.}/redis-data:/data:rw"
command: >
redis-server
--appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
Expand Down

0 comments on commit 3e2123e

Please sign in to comment.