Skip to content

Add a database volume to docker-compose file #194

@oDeano

Description

@oDeano

When adding drizzle, the adder creates a compose file for the db but doesn't add a volume to persist the data, is it worthwhile to add it to the template?

services:
  db:
    image: postgres
    restart: always
    ports:
      - 5432:5432
    environment:
      POSTGRES_USER: root
      POSTGRES_PASSWORD: mysecretpassword
      POSTGRES_DB: local
    volumes:
      - pgdata:/var/lib/postgresql/data
volumes:
  pgdata:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpkg:addsv add

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions