Files
ServerKit/backend/templates/php-app.yaml
T
Juan Denis 3ca6bd23a9 Update template icons and enhance sidebar user menu
Switched all template icon URLs to use local /serverkit.ai/imgs/template-icons/ assets for consistency and reliability. Improved the Sidebar component with a new user context menu featuring theme switching, settings navigation, and logout, along with conditional display of the WordPress pipeline link. Added and updated related styles for the sidebar, user menu, and page headers, and introduced new theme variables for code/terminal backgrounds.
2026-01-27 20:53:57 -05:00

65 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://serverkit.ai/imgs/template-icons/php-app.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"
hidden: true
- 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