-
Clone repo and rename folder to project name
-
Customize wordpress-docker.conf
MYSQL_ROOT_PASSWORD= MYSQL_DATABASE= MYSQL_USER= MYSQL_PASSWORD= NGINX_PROXY_ALIASE=
-
Build and start Docker containers
docker-compose pull docker-compose up -d
-
Download Wordpress file to data/srv/public
wget https://wordpress.org/latest.zip unzip latest.zip rm latest.zip mv wordpress/* . rm -r wordpress
-
Configure wp-config.php
mv wp-config-sample.php wp-config.php
Changes in wp-config.php:
- define('DB_NAME', '<as configured>'); - define('DB_USER', '<as configured>'); - define('DB_PASSWORD', '<as configured>'); - define('DB_HOST', 'mysql'); - Unique Keys and Salts - define('WP_REDIS_CLIENT', 'pecl'); - define('WP_REDIS_HOST', 'redis');
-
Enter site and do basic Wordpress setup
-
Install plugin Nginx Cache
https://wordpress.org/plugins/nginx-cache/
Settings:
- Cache Zone Path: /var/www/cache - Purge Cache: Enabled
-
Install plugin Redis Object Cache
https://wordpress.org/plugins/redis-cache/
Settings:
- Enable Object Cache
-
Notifications
You must be signed in to change notification settings - Fork 0
korbinianthiel/wordpress-docker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published