chore: migrate from docker compose to kubernetes deployment

- Replace Docker Compose setup with Kubernetes manifests for deployment
- Simplify Dockerfile to use PHP's built-in server instead of nginx+supervisor
- Add Makefile with build and deploy commands for local development
- Update environment configuration for production deployment
- Remove docker-specific configuration files (nginx.conf, supervisord.conf)
This commit is contained in:
Jp
2026-02-25 22:05:41 +08:00
parent e57e6d3413
commit 673a6ce166
6 changed files with 106 additions and 65 deletions

11
Makefile Normal file
View File

@@ -0,0 +1,11 @@
IMG := mkm-admin
build:
podman build -t $(IMG) .
deploy: build
@if [ ! -f .env ]; then cp .env.example .env; fi
kubectl create secret generic mkm-admin-env --from-env-file=.env --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -f k8s/deployment.yaml
.PHONY: build deploy