This is the most bare-bones example of PHP app running on Zerops.
You can either click the deploy button to deploy directly on Zerops, or manually copy the import yaml to the import dialog in the Zerops app.
- PHP 8.3 on Zerops Apache and Nginx service
- Zerops PostgreSQL 16 service as database
- Healthcheck setup example
- Utilization of Zerops' built-in environment variables system
- Utilization of Zerops' built-in log management
Base of the recipe is ready for production, the difference comes down to:
- Use highly available version of the PostgreSQL database (change mode from NON_HA to HA in recipe YAML, db service section)
- Use at least two containers for the PHP service to achieve high reliability and resilience (add minContainers: 2 in recipe YAML, apacheapi/nginxapi service section)
Further things to think about when running more complex, highly available PHP production apps on Zerops: