Initial commit
This commit is contained in:
9
LICENSE.txt
Normal file
9
LICENSE.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
This software is licensed under the Software License Agreement for Ports available at the URI bellow:
|
||||
https://www.superengine.tech/legal/software-license-agreement-for-ports
|
||||
If, for any reason, the URI provided in this file to the Software License Agreement for Ports does not redirect to the website of the copyright owner of this software, and, to the correct page on this website, you may not use this software.
|
||||
|
||||
This license does not apply to the files not under Superengine copyright as detailed in the NOTICE.txt file.
|
||||
|
||||
This software uses the following third-party software:
|
||||
- the postgresql image with the tag 17.4 from Docker Hub
|
||||
Third-party software have a different copyright owner and license.
|
||||
4
NOTICE.txt
Normal file
4
NOTICE.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Copyright 2025 Superengine, except for the following files:
|
||||
- picture.png
|
||||
|
||||
Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.
|
||||
19
README.md
Normal file
19
README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# PostgreSQL Port for Superengine
|
||||
|
||||
This port uses the `postgresql` image which is the ["official" PostgreSQL Docker image](https://hub.docker.com/_/postgres/) with the tag `17.4`. The port may be updated to use a newer tag in the future.
|
||||
|
||||
## Installation
|
||||
|
||||
Open Superengine, click `Install app` and enter the following app installation code: `04Pb1YE1w0MwXv6efxfCiuZmC6HuHzIlTdKQnCxIkYSsjKolcvm8fWkN0FoquGD9gXDGHod8AW42H7aXFZLu4`
|
||||
|
||||
## Configuration
|
||||
|
||||
The database name, user and password for Postgres are randomly generated by Superengine. The port number is static and provided by Superengine. The values for these configuration settings are displayed in the application page in Superengine.
|
||||
|
||||
## Data
|
||||
|
||||
Data is saved in the application data folder.
|
||||
|
||||
## Copyright and License
|
||||
|
||||
See the NOTICE.txt file for copyright information and the LICENSE.txt file for information about the license.
|
||||
17
compose.yaml.hbs
Normal file
17
compose.yaml.hbs
Normal file
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
{{app_id}}-postgresql:
|
||||
image: postgres:17.4
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: {{entitlements.db-user}}
|
||||
POSTGRES_PASSWORD: {{entitlements.db-password}}
|
||||
POSTGRES_DB: {{entitlements.db-name}}
|
||||
volumes:
|
||||
- {{entitlements.folder-path}}:/var/lib/postgresql/data
|
||||
ports:
|
||||
- {{entitlements.port-number}}:5432
|
||||
{{#unless (eq entitlements.os "windows")}}
|
||||
user: {{entitlements.uid}}:{{entitlements.gid}}
|
||||
{{/unless}}
|
||||
logging:
|
||||
driver: local
|
||||
72
manifest.json
Normal file
72
manifest.json
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"app-spec-version": "1.1",
|
||||
"subject": {
|
||||
"name": {
|
||||
"en": "PostgreSQL"
|
||||
},
|
||||
"version": "17.4-5"
|
||||
},
|
||||
"entitlements": [
|
||||
{
|
||||
"type": "RandomAlphanumericString30Characters",
|
||||
"name": "db-user",
|
||||
"description": {
|
||||
"en": "Name of the database user."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "RandomAlphanumericString30Characters",
|
||||
"name": "db-password",
|
||||
"description": {
|
||||
"en": "Password of the database user."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "RandomAlphanumericString30Characters",
|
||||
"name": "db-name",
|
||||
"description": {
|
||||
"en": "Database name."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ApplicationDataDirectoryPath",
|
||||
"name": "folder-path",
|
||||
"description": {
|
||||
"en": "Folder used by the database to store data."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "PortUnspecifiedStaticNumber",
|
||||
"name": "port-number",
|
||||
"description": {
|
||||
"en": "Number of the port used by the database."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "OperatingSystem",
|
||||
"name": "os",
|
||||
"description": {
|
||||
"en": "Operating system."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "IDUserNumber",
|
||||
"name": "uid",
|
||||
"description": {
|
||||
"en": "User ID number."
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "IDGroupNumber",
|
||||
"name": "gid",
|
||||
"description": {
|
||||
"en": "Group ID number."
|
||||
}
|
||||
}
|
||||
],
|
||||
"templates": [
|
||||
"compose.yaml.hbs",
|
||||
"embedded_ui/overview.html.hbs"
|
||||
],
|
||||
"actions": []
|
||||
}
|
||||
Reference in New Issue
Block a user