Files
ServerKit/backend/templates/php-app.yaml
T
Juan DenisandClaude Fable 5 586f556b93 Reference template icons through the serverkit.ai proxy
Follow-up to 025fa0be: keep serverkit.ai as the stable icon host rather
than jsDelivr. The registry repo remains the canonical home of the logo
files; serverkit.ai proxies /imgs/template-icons/ from its raw tree, so
these URLs now resolve for all 210 logos instead of only the legacy
subset the website bundles.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-28 21:28:14 -04: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