Setup "postgres-local" which runs a PostgreSQL instance usable by other applications.

Maven Dependency

<dependency>
  <groupId>io.yupiik.alveoli</groupId>
  <artifactId>postgres-local</artifactId>
  <version>1.0.27-SNAPSHOT</version>
</dependency>

Default Configuration

POSTGRES_DB

{{postgres-local.db:-postgres}}

POSTGRES_USER

{{postgres-local.username:-postgres}}

POSTGRES_PASSWORD

{{postgres-local.password:-postgres}}

PGDATA

/var/lib/postgresql/data/pgdata

Ports

  • Name: postgres

    • Port: 5432

    • Target Port: 5432

Sample Usage

{
  "alveoli": [
    {
      "//": "My alveolus.",
      "name": "com.company:my-app:1.0.0",
      "descriptors": [],
      "dependencies": [
        {
          "name": "io.yupiik.alveoli:postgres-local:1.0.27-SNAPSHOT",
          "location": "io.yupiik.alveoli:postgres-local:1.0.27-SNAPSHOT",
        }
      ],
      "patches": [{
        "descriptorName": "io.yupiik.alveoli:postgres-local:1.0.27-SNAPSHOT",
        "interpolate": true
      }]
    }
  ]
}

Configuration

postgres-local.db

The default database name in the PostgreSQL instance. Default value: postgres.

postgres-local.mountPath

Where to persist data - using a hostPath mounting point by default. Default value: /data/postgres-local.

postgres-local.password

The default user PostgreSQL password. Default value: postgres.

postgres-local.username

The default user PostgreSQL username. Default value: postgres.