Skip to content

timescaledb:2.8.1-pg14 The data is not stored at /home/postgres/pgdata/data #3997

Open
@lionants02

Description

@lionants02

I lost my data. Fortunately, there is no key information.
timescale/timescaledb:2.8.1-pg14
The data is not stored at /home/postgres/pgdata/data
But data is kept at /var/lib/postgresql/data

Might have to check again. But it's definitely not at /home/postgres/pgdata/data

My compose

version: "3.4"

services:
  homeward_timescale:
    image: "timescale/timescaledb:2.8.1-pg14"
    restart: always
    ports:
      - 10335:5432 
    volumes:
      - "/data/a_med_care/timescale:/home/postgres/pgdata/data:rw" #Data lost change to /var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: OjpvYE2hBaBYdf79SR5CygAH8O683hxxxdymmypass
      TS_TUNE_MEMORY: 2GB
      TS_TUNE_NUM_CPUS: 4
      TS_TUNE_MAX_CONNS: 150
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "postgres"]
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 60s
    deploy:
      resources:
        limits:
          cpus: '4'
          memory: 2100M

Good luck.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions