Skip to content

My data lost after removing the container #569

@pavelkeyzik

Description

@pavelkeyzik

Hi! Can you help me fix some problem with my database?

I have a docker-compose.yml with some configuration. It works correctly but after removing my container and start again I lose my data in the database. What am I doing wrong?

OS: Windows 10
Configuration file:

db:
    image: postgres:11.1
    restart: always
    ports:
      - 5444:5432
    environment:
      - POSTGRES_PASSWORD=postgres
      - POSTGRES_DB=test
    volumes:
      - pgdata:/var/lib/postgresql/data

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions