Feat: data persistence in shared volume
implemented a template to enable data persistence even with a shared volume across containers
This commit is contained in:
+6
-3
@@ -4,9 +4,9 @@ services:
|
||||
ports:
|
||||
- 5540:5540
|
||||
redis:
|
||||
image: redis:8.6.1
|
||||
image: golyalpha/redis:8.6.1
|
||||
build: ./build
|
||||
command: ["/conf/redis.conf"]
|
||||
command: ["/conf/redis.conf.tmpl"]
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 1m30s
|
||||
@@ -15,7 +15,7 @@ services:
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- ./conf:/conf:ro
|
||||
- /data
|
||||
- redis_data:/data
|
||||
expose:
|
||||
- 6379
|
||||
- 16379
|
||||
@@ -38,3 +38,6 @@ services:
|
||||
userns_mode: keep-id
|
||||
volumes:
|
||||
- ./notebooks:/home/jovyan
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
|
||||
Reference in New Issue
Block a user