https://github.com/willopez/wordpress-container
A WordPress Docker container with Nginx/PHP7 and based on Alpine Linux.
https://github.com/willopez/wordpress-container
Last synced: about 1 month ago
JSON representation
A WordPress Docker container with Nginx/PHP7 and based on Alpine Linux.
- Host: GitHub
- URL: https://github.com/willopez/wordpress-container
- Owner: willopez
- License: mit
- Created: 2017-11-08T23:18:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T00:09:18.000Z (over 8 years ago)
- Last Synced: 2025-01-11T11:48:02.181Z (over 1 year ago)
- Language: PHP
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress Docker Container
WordPress container with Nginx 1.12 & PHP-FPM 7.1 based on Alpine Linux.
WordPress Version: **4.8.3**
## Usage
See [docker-compose.yml](https://github.com/willopez/wordpress-container/blob/master/docker-compose.yml) how to use it in your own environment.
NOTE: An external docker network named: backend will be required, create one by running this command: ```docker network create backend```
docker-compose up
Or
docker run -d -p 80:80 -v /local/wp-content:/var/www/wp-content \
-e "DB_HOST=db" \
-e "DB_NAME=wordpress" \
-e "DB_USER=wp" \
-e "DB_PASSWORD=secret" \
-e "FS_METHOD=direct" \
willopez/wordpress
# WP-CLI
WP-CLI is included in the image, execute commands this way:
```
docker exec wp plugin list
```
### Inspired by
* https://hub.docker.com/_/wordpress/
* https://codeable.io/wordpress-developers-intro-to-docker-part-two/
* https://github.com/TrafeX/docker-php-nginx/