/wordpress-k8s

Minimal, cloud-native, battle-tested WordPress environment.

Primary LanguageShellMIT LicenseMIT

Stateless WordPress

WordPress NGINX GitHub Docker Pulls

Minimal, cloud-native, battle-tested WordPress environment meant to be used both in local development and staging/production.

Usage

Local Development Environment

# Clone the repo
git clone https://github.com/gioamato/stateless-wordpress.git
cd stateless-wordpress

# Spin it up with Docker Compose
docker compose up -d

# Open your browser and head to http://localhost:8080
# You will find the famous WordPress 5-minute install

Kubernetes

# Deploy with kubectl
kubectl apply -f https://raw.githubusercontent.com/gioamato/stateless-wordpress/master/deploy/kubernetes/deploy.yaml

# The namespace 'stateless-wordpress' is created to host the example resources:
# - 1 Stateful MySQL replica with emptyDir volume (data lost on restart)
# - 3 Stateless WordPress replicas (horizontal scaling)
# - A Secret storing WordPress Enviroment Configuration
# - A Service with type LoadBalancer to expose the app

# Open your browser and head to the service External IP
# You will find the famous WordPress 5-minute install

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT