WordPress, Caddy & Docker
Feb 10, 2022
⋅
1 minutes read
If you're going to setup a WordPress site that using Docker. The config below may be interesting.
Everything is normal, however I decide to use Caddy instead of Nginx for the virtual host.
Caddy is an open source web server, automatic HTTPS and writter in Go.
Project structure:
The full config of docker-compose.yml
Here is the config of Caddyfile
Updated on 7 Aug 2022:
If you want to serve multiple WordPress sites using Caddy, please follow this tutorial