-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiploi.yaml
50 lines (45 loc) · 1.28 KB
/
diploi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
diploiVersion: v1.0
type: addon
name: PostgreSQL
description: Official PostgreSQL addon for Diploi.
parameterGroups:
- name: Connection
identifier: postgres
description: Superuser & connection configuration
parameters:
- name: Host
identifier: POSTGRES_HOST
defaultValue: postgres.${DIPLOI_NAMESPACE}
type: string
readOnly: true
- name: Port
identifier: POSTGRES_PORT
defaultValue: 5432
type: integer
- name: User
identifier: POSTGRES_USER
defaultValue: postgres
type: string
contexts: label=postgres,label=app
- name: Password
identifier: POSTGRES_PASSWORD
defaultValue: postgres
type: secret
- name: Database
identifier: POSTGRES_DB
defaultValue: app
type: string
connectionStrings:
- name: Connection URI
value: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
description: This connection URI is for components within the deployment and is inaccessible externally.
logs:
- name: PostgreSQL Log
type: log
labelSelector: app=postgres
images:
- identifier: postgres
image: postgres:17.2
storage:
- identifier: postgres
sizeMiB: 6144