Files
ServerKit/backend/templates/php-app.yaml
T
Juan DenisandClaude Opus 4.5 cab18a32b7 Consolidate templates into backend/templates marketplace
- Removed duplicate root templates/ folder
- Added PHP, Python, Node.js templates to marketplace (YAML format)
- Templates now installable via web UI Templates page
- CLI create-app now points users to web UI
- All 63 templates in one place: backend/templates/

New templates:
- php-app: Custom PHP 8.0-8.3 with Apache
- python-app: Custom Python 3.9-3.12 (Flask/FastAPI/Django)
- node-app: Custom Node.js 18-21 (Express/Next.js)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 22:23:50 -05:00

64 lines
1.4 KiB
YAML

id: php-app
name: PHP Application
version: "8.3"
description: Custom PHP application with Apache. Supports PHP 8.0-8.3. Perfect for Laravel, WordPress themes, or any PHP project.
icon: https://www.php.net/images/logos/new-php-logo.svg
website: https://www.php.net
documentation: https://www.php.net/docs.php
categories:
- development
- web
- custom
variables:
- name: HTTP_PORT
description: HTTP port for the application
type: port
default: "8100"
- name: PHP_VERSION
description: PHP version (8.0, 8.1, 8.2, 8.3)
type: string
default: "8.3"
ports:
- port: 8100
protocol: tcp
description: Web interface
volumes:
- name: html
path: /var/www/html
description: Application files (put your PHP code here)
requirements:
memory: 256MB
storage: 1GB
compose:
services:
app:
image: php:${PHP_VERSION:-8.3}-apache
container_name: ${APP_NAME}
restart: unless-stopped
ports:
- "${HTTP_PORT}:80"
volumes:
- html:/var/www/html
environment:
- APACHE_DOCUMENT_ROOT=/var/www/html
volumes:
html:
post_install: |
Your PHP application is ready!
To add your code:
docker cp ./your-files/. ${APP_NAME}:/var/www/html/
To access shell:
docker exec -it ${APP_NAME} bash
To install extensions:
docker exec -it ${APP_NAME} docker-php-ext-install mysqli pdo pdo_mysql