PostgreSQL
An open-source relational database known for reliability and advanced features.
database
Usage
import { defineConfig } from 'dockup/config';
import { postgresql } from 'dockup/services';
export default defineConfig({
services: [
postgresql()
],
});
Metadata
This service automatically exposes metadata.
dockup metadata
Connection URL: postgres://user:password@localhost:5432/database
Can be used to connect to the database
The above are the metadata generated when using this service with the default options.
Options
Prop | Type | Default |
---|---|---|
port? | number | 5432 |
database? | string | "database" |
user? | string | "user" |
password? | string | "password" |
name? | string | - |
image? | string | - |
extend? | ((service: ContainerService) => ContainerService) | - |