On this page
Caching on wordpress using Caddy
What is Wordpress
Wordpress is a web content management system. It was originally created as a tool to publish blogs but has evolved to support publishing other web content, including more traditional websites, mailing lists and Internet forum, media galleries, membership sites, learning management systems and online stores.
Minimalistic setup
Caddyfile
The following Caddyfile will enable Souin as cache system in caddy. We set dynamically the server name using the environment variable.
Docker setup
You just need to setup a compose.yaml
file that will contain the 3 needed services, caddy
, wordpress
, mysql
:
As we defined the caddy
service with a custom image, let’s define the Dockerfile
to build the caddy
instance with Souin
HTTP cache:
And voilà, you’re now ready to run: