Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-wordpress
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
docker-wordpress
Commits
f8c910ad
Commit
f8c910ad
authored
Nov 06, 2016
by
Fabio Montefuscolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
aba53d85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
README
README
+52
-0
No files found.
README
0 → 100644
View file @
f8c910ad
# WordPress Docker Image
This is an image to help on plugins and themes development, but it
can be used to host a WordPress site as well. There are some tools
and nice librarys included, like *OPCache*, *X-Debug* and *WP-Cli*.
## Development environment (`WP_DEBUG=true`)
There are a WordPress installed at `/var/www/html`. So if you want
to develop a plugin, you can mount your content mapping your plugin
folder in `/var/www/html/wp-content/plugins`.
Let's suppose you want to test your plugin called *Awesome*, your
`docker-compose.yml` should be like this below.
```
web:
image: montefuscolo/wordpress
volumes:
- ./Awesome:/var/www/html/wp-content/plugins/Awesome
environment:
- WP_DEBUG=true
links:
- db:mysql
ports:
- "80:80"
db:
image: mariadb
environment:
- MYSQL_USER=thewpuser
- MYSQL_PASSWORD=thewppass
- MYSQL_DATABASE=wordpress
- MYSQL_ROOT_PASSWORD=thesuperpass
- TERM=xterm
```
### X-Debug
When you set `WP_DEBUG=true` in container environment, the X-Debug
configuration will be created automatically, and the container will
receive connections from any host. If you want suppress X-Debug,
set an enviroment variable with false value, like `XDEBUG=false`.
## Production Environment
Without `WP_DEBUG`, the container will create automatically the
configuration file to OPCache. You can suppress this behavior by
setting in environment `OPCACHE=false`.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment