fix: use correct envVar format and enable platform services
- Fix envVar field names (key/value/description instead of name/default) - Ghost: use MariaDB platform service instead of SQLite - WordPress: use MariaDB platform service - Nextcloud: use MariaDB + Redis platform services - Gitea: use MariaDB platform service
This commit is contained in:
@@ -2,17 +2,15 @@
|
||||
"image": "ghost:latest",
|
||||
"port": 2368,
|
||||
"envVars": [
|
||||
{
|
||||
"name": "database__client",
|
||||
"default": "sqlite3"
|
||||
},
|
||||
{
|
||||
"name": "database__connection__filename",
|
||||
"default": "/var/lib/ghost/content/data/ghost.db"
|
||||
},
|
||||
{
|
||||
"name": "url",
|
||||
"default": "http://localhost:2368"
|
||||
}
|
||||
]
|
||||
{ "key": "database__client", "value": "mysql", "description": "Database client" },
|
||||
{ "key": "database__connection__host", "value": "${MARIADB_HOST}", "description": "Database host (auto-injected by platform)" },
|
||||
{ "key": "database__connection__port", "value": "${MARIADB_PORT}", "description": "Database port (auto-injected by platform)" },
|
||||
{ "key": "database__connection__user", "value": "${MARIADB_USER}", "description": "Database user (auto-injected by platform)" },
|
||||
{ "key": "database__connection__password", "value": "${MARIADB_PASSWORD}", "description": "Database password (auto-injected by platform)" },
|
||||
{ "key": "database__connection__database", "value": "${MARIADB_DATABASE}", "description": "Database name (auto-injected by platform)" },
|
||||
{ "key": "url", "value": "http://localhost:2368", "description": "Public URL of the blog" }
|
||||
],
|
||||
"platformRequirements": {
|
||||
"mariadb": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
{
|
||||
"image": "gitea/gitea:latest",
|
||||
"port": 3000
|
||||
"port": 3000,
|
||||
"envVars": [
|
||||
{ "key": "GITEA__database__DB_TYPE", "value": "mysql", "description": "Database type" },
|
||||
{ "key": "GITEA__database__HOST", "value": "${MARIADB_HOST}:${MARIADB_PORT}", "description": "Database host (auto-injected by platform)" },
|
||||
{ "key": "GITEA__database__NAME", "value": "${MARIADB_DATABASE}", "description": "Database name (auto-injected by platform)" },
|
||||
{ "key": "GITEA__database__USER", "value": "${MARIADB_USER}", "description": "Database user (auto-injected by platform)" },
|
||||
{ "key": "GITEA__database__PASSWD", "value": "${MARIADB_PASSWORD}", "description": "Database password (auto-injected by platform)" }
|
||||
],
|
||||
"platformRequirements": {
|
||||
"mariadb": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
"image": "grafana/grafana:latest",
|
||||
"port": 3000,
|
||||
"envVars": [
|
||||
{
|
||||
"name": "GF_SECURITY_ADMIN_PASSWORD",
|
||||
"default": "admin"
|
||||
}
|
||||
{ "key": "GF_SECURITY_ADMIN_PASSWORD", "value": "admin", "description": "Admin password" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
"image": "mariadb:latest",
|
||||
"port": 3306,
|
||||
"envVars": [
|
||||
{
|
||||
"name": "MARIADB_ROOT_PASSWORD",
|
||||
"required": true
|
||||
}
|
||||
{ "key": "MARIADB_ROOT_PASSWORD", "value": "", "description": "Root password", "required": true }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
{
|
||||
"image": "nextcloud:latest",
|
||||
"port": 80
|
||||
"port": 80,
|
||||
"envVars": [
|
||||
{ "key": "MYSQL_HOST", "value": "${MARIADB_HOST}", "description": "Database host (auto-injected by platform)" },
|
||||
{ "key": "MYSQL_USER", "value": "${MARIADB_USER}", "description": "Database user (auto-injected by platform)" },
|
||||
{ "key": "MYSQL_PASSWORD", "value": "${MARIADB_PASSWORD}", "description": "Database password (auto-injected by platform)" },
|
||||
{ "key": "MYSQL_DATABASE", "value": "${MARIADB_DATABASE}", "description": "Database name (auto-injected by platform)" }
|
||||
],
|
||||
"platformRequirements": {
|
||||
"mariadb": true,
|
||||
"redis": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,17 +2,8 @@
|
||||
"image": "postgres:16-alpine",
|
||||
"port": 5432,
|
||||
"envVars": [
|
||||
{
|
||||
"name": "POSTGRES_PASSWORD",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "POSTGRES_USER",
|
||||
"default": "postgres"
|
||||
},
|
||||
{
|
||||
"name": "POSTGRES_DB",
|
||||
"default": "postgres"
|
||||
}
|
||||
{ "key": "POSTGRES_PASSWORD", "value": "", "description": "Superuser password", "required": true },
|
||||
{ "key": "POSTGRES_USER", "value": "postgres", "description": "Superuser name" },
|
||||
{ "key": "POSTGRES_DB", "value": "postgres", "description": "Default database name" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -2,21 +2,12 @@
|
||||
"image": "wordpress:latest",
|
||||
"port": 80,
|
||||
"envVars": [
|
||||
{
|
||||
"name": "WORDPRESS_DB_HOST",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "WORDPRESS_DB_USER",
|
||||
"default": "wordpress"
|
||||
},
|
||||
{
|
||||
"name": "WORDPRESS_DB_PASSWORD",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"name": "WORDPRESS_DB_NAME",
|
||||
"default": "wordpress"
|
||||
}
|
||||
]
|
||||
{ "key": "WORDPRESS_DB_HOST", "value": "${MARIADB_HOST}:${MARIADB_PORT}", "description": "Database host (auto-injected by platform)" },
|
||||
{ "key": "WORDPRESS_DB_USER", "value": "${MARIADB_USER}", "description": "Database user (auto-injected by platform)" },
|
||||
{ "key": "WORDPRESS_DB_PASSWORD", "value": "${MARIADB_PASSWORD}", "description": "Database password (auto-injected by platform)" },
|
||||
{ "key": "WORDPRESS_DB_NAME", "value": "${MARIADB_DATABASE}", "description": "Database name (auto-injected by platform)" }
|
||||
],
|
||||
"platformRequirements": {
|
||||
"mariadb": true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user