redis data to host to defend against losing volume

This commit is contained in:
Josh Sandlin
2026-07-31 14:40:52 -04:00
parent 50fb2e7a9a
commit ebbd53d50c
+1 -7
View File
@@ -23,9 +23,6 @@ services:
- "127.0.0.1:5000:5000"
volumes:
- ./zot-config.json:/etc/zot/config.json:ro
# Registry blobs live on the host, not in the container layer. Docker
# creates this directory on first start; zot runs as root so no chown
# dance is needed. Path matches storage.rootDirectory in zot-config.json.
- ./zot-data:/var/lib/zot
networks:
- ttlsh-network
@@ -55,7 +52,7 @@ services:
restart: always
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
- ./redis-data:/data
networks:
- ttlsh-network
healthcheck:
@@ -68,6 +65,3 @@ services:
networks:
ttlsh-network:
driver: bridge
volumes:
redis-data: