Addons Docs

PostgreSQL

PostgreSQL is a free and open-source relational database management system.

IMPORTANT: persistent_path should be set to /var/lib/postgresql/data environment variable PGDATA set to /var/lib/postgresql/data/db-files.

Default configs:

See the repository for the configurations definition.

{

  "name": "postgresql",

  "category": "database",

  "minimum_memory_mb": 100,

  "logo_filename": "logo.svg",

  "documentation_filename": "README.md",

  "image": "postgres",

  "requires_persistence": true,

  "persistent_path": "/var/lib/postgresql/data",

  "ports": [

    {

      "target_port": 5432,

      "protocol": "TCP"

    }

  ],

  "required_fields": ["persistent_path"],

  "env_variables": {

    "POSTGRES_PASSWORD": "my-secret-password",

    "POSTGRES_USER": "postgres",

    "POSTGRES_DB": "mydb",

    "PGDATA": "/var/lib/postgresql/data/db-files"

  },

  "required_env_variables": [

    "POSTGRES_PASSWORD",

    "POSTGRES_USER",

    "POSTGRES_DB",

    "PGDATA"

  ]

}