summaryrefslogtreecommitdiffhomepage
path: root/public/v4/apps/postgres.yml
diff options
context:
space:
mode:
authorKasra Bigdeli <[email protected]>2020-08-16 20:07:04 -0400
committerKasra Bigdeli <[email protected]>2020-08-16 20:07:04 -0400
commitaf172b6680583487bdeacf230d7abaf9b57f4811 (patch)
tree799048031a312668a695314c14044abe9bda9ccd /public/v4/apps/postgres.yml
parent0e70ec541e7441b71460db230975d4614473ed6d (diff)
downloadcaprover-one-click-apps-af172b6680583487bdeacf230d7abaf9b57f4811.tar.gz
caprover-one-click-apps-af172b6680583487bdeacf230d7abaf9b57f4811.zip
Formatter on V4
Diffstat (limited to 'public/v4/apps/postgres.yml')
-rw-r--r--public/v4/apps/postgres.yml88
1 files changed, 44 insertions, 44 deletions
diff --git a/public/v4/apps/postgres.yml b/public/v4/apps/postgres.yml
index bf43778..40752d2 100644
--- a/public/v4/apps/postgres.yml
+++ b/public/v4/apps/postgres.yml
@@ -1,49 +1,49 @@
captainVersion: 4
services:
- $$cap_appname-db:
- image: postgres:$$cap_postgres_version
- volumes:
- - $$cap_appname-db-data:/var/lib/postgresql/data
- restart: always
- environment:
- POSTGRES_USER: $$cap_pg_user
- POSTGRES_PASSWORD: $$cap_pg_pass
- POSTGRES_DB: $$cap_pg_db
- POSTGRES_INITDB_ARGS: $$cap_pg_initdb_args
- caproverExtra:
- notExposeAsWebApp: "true"
+ $$cap_appname-db:
+ image: postgres:$$cap_postgres_version
+ volumes:
+ - $$cap_appname-db-data:/var/lib/postgresql/data
+ restart: always
+ environment:
+ POSTGRES_USER: $$cap_pg_user
+ POSTGRES_PASSWORD: $$cap_pg_pass
+ POSTGRES_DB: $$cap_pg_db
+ POSTGRES_INITDB_ARGS: $$cap_pg_initdb_args
+ caproverExtra:
+ notExposeAsWebApp: 'true'
caproverOneClickApp:
- variables:
- - id: $$cap_postgres_version
- label: Postgres Version
- defaultValue: "9.6"
- description: Check out their Docker page for the valid tags https://hub.docker.com/r/library/postgres/tags/
- validRegex: /^([^\s^\/])+$/
- - id: $$cap_pg_user
- label: Postgres Username
- description: ""
- validRegex: /.{1,}/
- - id: $$cap_pg_pass
- label: Postgres Password
- description: ""
- validRegex: /.{1,}/
- - id: $$cap_pg_db
- label: Postgres Default Database
- description: ""
- validRegex: /.{1,}/
- - id: $$cap_pg_initdb_args
- label: "OPTIONAL: Arguments for 'postgres initdb'"
- description: For example, --data-checksums
- validRegex: /.{0,}/
- instructions:
- start: >-
- PostgreSQL, often simply Postgres, is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards-compliance. As a database server, its primary function is to store data, securely and supporting best practices, and retrieve it later, as requested by other software applications, be it those on the same computer or those running on another computer across a network (including the Internet). It can handle workloads ranging from small single-machine applications to large Internet-facing applications with many concurrent users.
+ variables:
+ - id: $$cap_postgres_version
+ label: Postgres Version
+ defaultValue: '9.6'
+ description: Check out their Docker page for the valid tags https://hub.docker.com/r/library/postgres/tags/
+ validRegex: /^([^\s^\/])+$/
+ - id: $$cap_pg_user
+ label: Postgres Username
+ description: ''
+ validRegex: /.{1,}/
+ - id: $$cap_pg_pass
+ label: Postgres Password
+ description: ''
+ validRegex: /.{1,}/
+ - id: $$cap_pg_db
+ label: Postgres Default Database
+ description: ''
+ validRegex: /.{1,}/
+ - id: $$cap_pg_initdb_args
+ label: "OPTIONAL: Arguments for 'postgres initdb'"
+ description: For example, --data-checksums
+ validRegex: /.{0,}/
+ instructions:
+ start: >-
+ PostgreSQL, often simply Postgres, is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards-compliance. As a database server, its primary function is to store data, securely and supporting best practices, and retrieve it later, as requested by other software applications, be it those on the same computer or those running on another computer across a network (including the Internet). It can handle workloads ranging from small single-machine applications to large Internet-facing applications with many concurrent users.
- After installation on CapRover, it will be available as srv-captain--YOUR_CONTAINER_NAME at port 5432 to other CapRover apps.
+ After installation on CapRover, it will be available as srv-captain--YOUR_CONTAINER_NAME at port 5432 to other CapRover apps.
- Enter your Postgres Configuration parameters and click on next. It will take about a minute for the process to finish.
- end: "Postgres is deployed and available as srv-captain--$$cap_appname-db:5432 to other apps. For example with NodeJS: 'const client = new Client({ user: 'cap_pg_user', host: 'srv-captain--$$cap_appname', database: 'cap_pg_db', password: '********', port: 5432})'"
- displayName: PostgreSQL
- isOfficial: true
- description: The PostgreSQL object-relational database system provides reliability and data integrity
- documentation: Taken from https://hub.docker.com/_/postgres
+ Enter your Postgres Configuration parameters and click on next. It will take about a minute for the process to finish.
+ end: "Postgres is deployed and available as srv-captain--$$cap_appname-db:5432 to other apps. For example with NodeJS: 'const client = new Client({ user: 'cap_pg_user', host: 'srv-captain--$$cap_appname', database: 'cap_pg_db', password: '********', port: 5432})'"
+ displayName: PostgreSQL
+ isOfficial: true
+ description: The PostgreSQL object-relational database system provides reliability and data integrity
+ documentation: Taken from https://hub.docker.com/_/postgres