mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-08-25 03:07:15 +00:00
redis data to host to defend against losing volume
This commit is contained in:
+1
-7
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user