A local server setup for running WordPress with Docker
- NGINX with custom config file
- SSL
- WordPress
- MariaDB
- Copy
.env.example
to.env
and edit your preferences. - Run the
create-cert.sh
script in thebin
folder withsh create-script.sh
commando. This script will create the certificates for your customDOMAIN
and place them in thecerts
folder. - Make sure your /etc/hosts file has a record for the used domains:
sudo nano /etc/hosts
Add your selected domain like this:
127.0.0.1 domain.local
- Move to the root folder (where the
docker-compose.yml
file lives) and rundocker-compose up --build
to build your containers.
- Install WP-CLI
- Install SMTP server