Skip to content

Install WordPress on the latest LEMP stack using Docker Compose.

License

Notifications You must be signed in to change notification settings

aurkenb/docker-wordpress-lemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress on PHP7.4 + MySQL 8.0 with Docker Compose

Install WordPress on the latest LEMP stack using Docker Compose.

The following Docker images have been used:

  • PHP 7.4+
  • MySQL 8.0+
  • Latest WordPress version
  • Latest Nginx version

Installation (manual)

Clone repository:

git clone https://github.com/aurkenb/docker-wordpress-lemp && cd docker-wordpress-lemp
cp .env.example .env

Copy environment file and default nginx setup:

cp ./config/nginx/templates/http.conf ./config/nginx/default.conf

Adjust DOMAIN_NAME and other variables in .env:

DOMAIN_NAME=localhost.example

NGINX_HTTP_PORT=80
NGINX_HTTPS_PORT=443
...

Map DOMAIN_NAME to 127.0.0.1

echo "127.0.0.1 localhost.example" | sudo tee -a /etc/hosts

Ready to go:

docker-compose up -d --build

(Experimental) Installation with trusted self-signed certificates

Clone repository:

git clone https://github.com/aurkenb/docker-wordpress-lemp && cd docker-wordpress-lemp
cp .env.example .env

init.sh automatically setups environment:

sh init.sh

Ready to go:

docker-compose up -d --build

About

Install WordPress on the latest LEMP stack using Docker Compose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published