https://github.com/nmarley/wp-docker-setup
Dockerized WordPress Setup
https://github.com/nmarley/wp-docker-setup
docker mysql php wordpress
Last synced: 2 months ago
JSON representation
Dockerized WordPress Setup
- Host: GitHub
- URL: https://github.com/nmarley/wp-docker-setup
- Owner: nmarley
- Created: 2017-03-21T00:29:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T00:50:54.000Z (over 9 years ago)
- Last Synced: 2025-10-07T08:43:38.320Z (9 months ago)
- Topics: docker, mysql, php, wordpress
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerized WordPress Setup
Tried to build this the proper way, instead of sticking everything into one
container.
### Steps to Install/Run:
1. Extract recent version of WordPress to shared/code:
```
curl -s https://wordpress.org/latest.tar.gz | gzip -d | pax -r -s :^wordpress:shared/code:
chmod 0777 shared/code
```
2. Build php-fpm image w/mysqli:
```
(cd php && docker build -t php:7-fpm-alpine-mysqli .)
```
3. Place necessary configuration files in `nginx/`, `mysql/`, `php/`.
* SSL files go in `nginx/ssl`
* set proper defaults for `nginx/vars.env` and `mysql/vars.env`
* any other configuration changes you desire
4. Start all services with docker-compose\*:
```
docker-compose up -d
```
* Note: Ubuntu is notoriously slow about updating packages. As of 2017-03-20, the version of docker-compose that ships with Ubuntu 16.10 is really old and won't work with this docker-compose file. You will need to install the updated binary yourself.
### To stop all services:
docker-compose down
### Post-Install
After installing WordPress via the web interface, you might want to lock down the code directory permissions:
chmod 0755 shared/code