oblakstudio / redisinsight

RedisInsight v2 - Better GUI for Redis (amd64/arm64)
https://hub.docker.com/r/oblakstudio/redisinsight
Other
65 stars 7 forks source link

[Question] Path where the Redis database information shown on the screen is saved #8

Closed sdYoo closed 12 months ago

sdYoo commented 1 year ago

Hello,

When the container is lowered or raised, the stored database information is initialized. Where is the database information stored?

sdYoo commented 1 year ago

This is when restarting the container after stopping.

micgruber commented 1 year ago

I would be also interested because I want to use the image in kuberntes and want to save the settings if a container gets restarted. With the old image you can mount a volume to /db and all information will be stored. It doesn't work with the image.

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: redisinsight-pv-claim
  namespace: redis
  labels:
    app: redisinsight
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redisinsight
  namespace: redis
  labels:
    app: redisinsight
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redisinsight
  template:
    metadata:
      labels:
        app: redisinsight
    spec:
      containers:
        - name:  redisinsight
          image: oblakstudio/redisinsight:latest
          imagePullPolicy: IfNotPresent
          securityContext:
            runAsUser: 0
          volumeMounts:
            - name: db
              mountPath: /db
          ports:
            - containerPort: 5000
              protocol: TCP
      volumes:
        - name: db
          persistentVolumeClaim:
            claimName: redisinsight-pv-claim
---
seebeen commented 12 months ago

Hello.

I'll fix this in the next release.

oblakbot commented 12 months ago

:tada: This issue has been resolved in version 2.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

seebeen commented 12 months ago

Readme Updated to reflect the new persistence.