Deploy to Kubernetes
Built your app with Laradock? Ship it to Kubernetes without changing your stack. ./laradock ship builds one self-contained image (nginx + php-fpm, serving $PORT); your cluster just runs it, whether that's your own, EKS, GKE, AKS, or DOKS.
1. Build and push the image
./laradock ship registry.example.com/you/app:1.0 --push
2. Apply the manifests
Laradock ships a ready kubernetes.yaml: a deployment (resource limits + probes), a service, a TLS-ready ingress (cert-manager), an uploads PVC, plus optional worker, scheduler CronJob, and migrate Job.
kubectl create secret generic app-env --from-env-file=laradock/production/.env
# set image: to your pushed image in kubernetes.yaml, then:
kubectl apply -f laradock/production/kubernetes.yaml
Notes
- Managed database. Point
DB_*/REDIS_*at RDS, Cloud SQL, or your provider's managed service, never a pod. - TLS. Install cert-manager and set your issuer in the ingress annotations.
- Uploads. Multiple replicas need
ReadWriteManystorage or S3 (see the PVC note in the manifest).
Deploying elsewhere? The full deploy guide covers every target, ECS, Cloud Run, Fly, Render, and more.