redis-stack / redis-stack-docs

6 stars 55 forks source link

Docker container of image 'redis/redis-stack:latest' does not perform a DB DISK save on SHUTDOWN #152

Closed wuarmin closed 1 year ago

wuarmin commented 1 year ago

Hey,

I have following redis-stack-container:

  store:
    image: redis/redis-stack:latest
    restart: unless-stopped
    volumes:
      - ./storage/redis-stack-data/:/data

SAVE is configured properly and works:

# redis-cli
user@026d54473ab5:/# redis-cli 
127.0.0.1:6379> CONFIG GET SAVE
1) "save"
2) "3600 1 300 100 60 10000"
127.0.0.1:6379> SAVE
OK
# log
8:M 30 Mar 2023 08:42:05.999 * Ready to accept connections
8:M 30 Mar 2023 08:43:16.067 * DB saved on disk

But when I shutdown the container...

# log
8:signal-handler (1680166043) Received SIGTERM scheduling shutdown...
8:signal-handler (1680166043) Received SIGTERM scheduling shutdown...

...then no DB DISK save is carried out. what am I doing wrong?

thanks

wuarmin commented 1 year ago

Closed in favor of https://github.com/redis-stack/redis-stack/issues/371