Files
ServerKit/backend/templates/wordpress.yaml
T
Juan Denis 986909a955 Surface Docker DBs, add base port & migration fixes
Expose and surface containerised databases and introduce managed app base port control. Backend: add endpoint to list databases across all Docker apps, robustly resolve compose container names, include docker DB user when querying, compute migration needs from live heads and self-heal orphaned alembic_version entries by stamping to head, and add the managed_app_base_port system setting. Template service now honours the managed_app_base_port and WordPress template default HTTP port updated to 8300. Frontend: add react-icons brand icons and DatabaseBrands component, show Docker-hosted DBs under their engine nodes with a docker badge, platform-aware console shortcut label, pass DB user to docker table/query API calls, add API client header merge fix, UI for managing base port in settings, enhanced migration history UI (backup/apply/resync flows, confirm dialog, toasts), and various style tweaks and color additions.
2026-06-06 23:29:22 -04:00

87 lines
1.9 KiB
YAML

id: wordpress
name: WordPress
version: "6.4"
description: World's most popular content management system for blogs and websites
icon: https://serverkit.ai/imgs/template-icons/wordpress.png
website: https://wordpress.org
documentation: https://wordpress.org/documentation/
categories:
- cms
- blog
- website
variables:
- name: VERSION
description: WordPress image tag (WP core + PHP variant, e.g. 6.4-php8.2-apache)
type: string
default: "6.4-apache"
hidden: true
- name: HTTP_PORT
description: HTTP port
type: port
default: "8300"
hidden: true
- name: DB_PASSWORD
description: MySQL root password
type: password
generate: password
hidden: true
- name: WP_DB_PASSWORD
description: WordPress database password
type: password
generate: password
hidden: true
ports:
- port: 8080
protocol: tcp
description: Web interface
volumes:
- name: html
path: /var/www/html
description: WordPress files
- name: db
path: /var/lib/mysql
description: MySQL data
compose:
services:
wordpress:
image: wordpress:${VERSION}
container_name: ${APP_NAME}
restart: unless-stopped
environment:
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD=${WP_DB_PASSWORD}
- WORDPRESS_DB_NAME=wordpress
volumes:
- wordpress_html:/var/www/html
ports:
- "${HTTP_PORT}:80"
depends_on:
- db
- redis
redis:
image: redis:7-alpine
container_name: ${APP_NAME}-redis
restart: unless-stopped
db:
image: mysql:8.0
container_name: ${APP_NAME}-db
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wordpress
- MYSQL_PASSWORD=${WP_DB_PASSWORD}
volumes:
- wordpress_db:/var/lib/mysql
volumes:
wordpress_html:
wordpress_db: