Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Fix more templates: ghost, gitea, nextcloud, nginx-proxy-manager

Juan Denis65ee8ea4cd6a
diff --git a/backend/templates/ghost.yaml b/backend/templates/ghost.yaml
index 66e156fb..5be906cf 100644
--- a/backend/templates/ghost.yaml
+++ b/backend/templates/ghost.yaml
@@ -1,4 +1,5 @@
-name: ghost
+id: ghost
+name: Ghost
version: "5.75"
description: Professional publishing platform for blogs and newsletters
icon: /icons/ghost.png
@@ -10,28 +11,28 @@ website: https://ghost.org
documentation: https://ghost.org/docs
variables:
- PORT:
+ - name: HTTP_PORT
type: port
- default: 2368
+ default: "2368"
description: Port to expose Ghost
- SITE_URL:
+ - name: SITE_URL
type: string
default: http://localhost:2368
description: Full URL where Ghost will be accessible
required: true
- DB_PASSWORD:
+ - name: DB_PASSWORD
type: password
length: 24
description: MySQL database password
compose:
services:
- ghost:
+ app:
image: ghost:5-alpine
- container_name: ghost
+ container_name: ${APP_NAME}
restart: unless-stopped
ports:
- - "${PORT}:2368"
+ - "${HTTP_PORT}:2368"
environment:
url: "${SITE_URL}"
database__client: mysql
@@ -46,7 +47,7 @@ compose:
ghost-db:
image: mysql:8.0
- container_name: ghost-db
+ container_name: ${APP_NAME}-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
@@ -61,7 +62,7 @@ compose:
ghost-db-data:
ports:
- - port: "${PORT}"
+ - port: "${HTTP_PORT}"
protocol: http
description: Ghost Blog
diff --git a/backend/templates/gitea.yaml b/backend/templates/gitea.yaml
index 56f1bf9d..a17b8fa3 100644
--- a/backend/templates/gitea.yaml
+++ b/backend/templates/gitea.yaml
@@ -1,4 +1,5 @@
-name: gitea
+id: gitea
+name: Gitea
version: "1.21"
description: Lightweight self-hosted Git service
icon: /icons/gitea.png
@@ -10,28 +11,28 @@ website: https://gitea.io
documentation: https://docs.gitea.io
variables:
- HTTP_PORT:
+ - name: HTTP_PORT
type: port
- default: 3000
+ default: "3000"
description: Port for web interface
- SSH_PORT:
+ - name: SSH_PORT
type: port
- default: 2222
+ default: "2222"
description: Port for SSH access
- DB_PASSWORD:
+ - name: DB_PASSWORD
type: password
length: 24
description: Database password
- SECRET_KEY:
+ - name: SECRET_KEY
type: random
length: 32
description: Internal secret key
compose:
services:
- gitea:
+ app:
image: gitea/gitea:1.21
- container_name: gitea
+ container_name: ${APP_NAME}
restart: unless-stopped
ports:
- "${HTTP_PORT}:3000"
@@ -54,7 +55,7 @@ compose:
gitea-db:
image: postgres:15-alpine
- container_name: gitea-db
+ container_name: ${APP_NAME}-db
restart: unless-stopped
environment:
POSTGRES_USER: gitea
diff --git a/backend/templates/nextcloud.yaml b/backend/templates/nextcloud.yaml
index 53576c99..c6af15a4 100644
--- a/backend/templates/nextcloud.yaml
+++ b/backend/templates/nextcloud.yaml
@@ -1,4 +1,5 @@
-name: nextcloud
+id: nextcloud
+name: Nextcloud
version: "28.0"
description: Self-hosted productivity platform with file sync and collaboration
icon: /icons/nextcloud.png
@@ -10,36 +11,36 @@ website: https://nextcloud.com
documentation: https://docs.nextcloud.com
variables:
- PORT:
+ - name: HTTP_PORT
type: port
- default: 8080
+ default: "8080"
description: Port to expose Nextcloud
- ADMIN_USER:
+ - name: ADMIN_USER
type: string
default: admin
description: Admin username
- ADMIN_PASSWORD:
+ - name: ADMIN_PASSWORD
type: password
length: 16
description: Admin password
required: true
- DB_PASSWORD:
+ - name: DB_PASSWORD
type: password
length: 24
description: Database password
- REDIS_PASSWORD:
+ - name: REDIS_PASSWORD
type: password
length: 16
description: Redis password
compose:
services:
- nextcloud:
+ app:
image: nextcloud:28-apache
- container_name: nextcloud
+ container_name: ${APP_NAME}
restart: unless-stopped
ports:
- - "${PORT}:80"
+ - "${HTTP_PORT}:80"
environment:
POSTGRES_HOST: nextcloud-db
POSTGRES_DB: nextcloud
@@ -57,7 +58,7 @@ compose:
nextcloud-db:
image: postgres:15-alpine
- container_name: nextcloud-db
+ container_name: ${APP_NAME}-db
restart: unless-stopped
environment:
POSTGRES_USER: nextcloud
@@ -68,7 +69,7 @@ compose:
nextcloud-redis:
image: redis:alpine
- container_name: nextcloud-redis
+ container_name: ${APP_NAME}-redis
restart: unless-stopped
command: redis-server --requirepass "${REDIS_PASSWORD}"
volumes:
@@ -80,15 +81,10 @@ compose:
nextcloud-redis-data:
ports:
- - port: "${PORT}"
+ - port: "${HTTP_PORT}"
protocol: http
description: Web Interface
requirements:
memory: 1GB
storage: 10GB
-
-scripts:
- post_install: |
- echo "Nextcloud installed! Access it at http://localhost:${PORT}"
- echo "Default admin: ${ADMIN_USER}"
diff --git a/backend/templates/nginx-proxy-manager.yaml b/backend/templates/nginx-proxy-manager.yaml
index a1e74cde..0ce072a9 100644
--- a/backend/templates/nginx-proxy-manager.yaml
+++ b/backend/templates/nginx-proxy-manager.yaml
@@ -1,4 +1,5 @@
-name: nginx-proxy-manager
+id: nginx-proxy-manager
+name: Nginx Proxy Manager
version: "2.10"
description: Easy-to-use reverse proxy with SSL management
icon: /icons/nginx-proxy-manager.png
@@ -10,28 +11,28 @@ website: https://nginxproxymanager.com
documentation: https://nginxproxymanager.com/guide
variables:
- HTTP_PORT:
+ - name: HTTP_PORT
type: port
- default: 80
+ default: "80"
description: HTTP port for proxied sites
- HTTPS_PORT:
+ - name: HTTPS_PORT
type: port
- default: 443
+ default: "443"
description: HTTPS port for proxied sites
- ADMIN_PORT:
+ - name: ADMIN_PORT
type: port
- default: 81
+ default: "81"
description: Admin panel port
- DB_PASSWORD:
+ - name: DB_PASSWORD
type: password
length: 24
description: MySQL database password
compose:
services:
- npm:
+ app:
image: jc21/nginx-proxy-manager:latest
- container_name: nginx-proxy-manager
+ container_name: ${APP_NAME}
restart: unless-stopped
ports:
- "${HTTP_PORT}:80"
@@ -51,7 +52,7 @@ compose:
npm-db:
image: jc21/mariadb-aria:latest
- container_name: npm-db
+ container_name: ${APP_NAME}-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
@@ -80,9 +81,3 @@ ports:
requirements:
memory: 256MB
storage: 1GB
-
-scripts:
- post_install: |
- echo "Nginx Proxy Manager installed!"
- echo "Access admin panel at http://localhost:${ADMIN_PORT}"
- echo "Default credentials: [email protected] / changeme"