Wordpress build in with Nginx + PHP 7 + FPM and supported with Redis for session
10K+
Docker for Wordpress build in with Nginx + PHP-FPM based on alpine images and supported with Redis session
Pull the image from the Docker repository.
docker pull modinbah/wordpress_nginx
You can running this wordpress using docker-compose (files provided in this repository):
docker-compose -f docker-compose.yml up -d
We use the volume to make data not removed after shutdown docker-compose. You can change the volume from this configuration
# DATBASE
volume:
- {YOUR_PATH}:/var/lib/mysql
# WORDPRESS
volume:
- {YOUR_PATH}:/usr/share/nginx/html/
Using the docker compose, you can easy to run using the default configuration. If you want to change it, you can follow this instruction
MYSQL_ROOT_PASSWORD
MYSQL_DATABASE & DB_NAME
MYSQL_USER & DB_USER
MYSQL_PASSWORD & DB_PASSWORD
If you want to change value, you need to change both of environment.
In this configuration, we use PHP 7 as default version and PHP Module
If you want to change PHP Module or version, simple to add environment while you want running container from docker compose
PHPVERSION={YOUR_VERSION}
PHPMODULE="php${PHPVERSION} \
php${PHPVERSION}-fpm \
php${PHPVERSION}-{YOUR_MODULE}"
By default, we use Redis as a session user login. If you have a concern and want to turn off, you can simply remove Redis from docker-compose, and change value to SESSION from ON to OFF.
SESSION=OFF
Content type
Image
Digest
Size
87.6 MB
Last updated
almost 6 years ago
docker pull modinbah/wordpress_nginx