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
86cedb98
Commit
86cedb98
authored
Apr 27, 2017
by
Fabio Montefuscolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix readme
parent
72ee9cce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
25 deletions
+65
-25
README.markdown
README.markdown
+44
-25
docker-compose.yml
docker-compose.yml
+21
-0
No files found.
README.markdown
View file @
86cedb98
...
...
@@ -5,7 +5,7 @@ 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`)
## Development environment
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
...
...
@@ -15,38 +15,57 @@ 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
version: '2'
services:
web:
image: hacklab/wordpress
environment:
- WORDPRESS_DEBUG=true
- WORDPRESS_DB_USER=the_db_user
- WORDPRESS_DB_PASSWORD=the_db_pass
- WORDPRESS_DB_NAME=the_db_name
ports:
- "80:80"
mysql:
image: mariadb
environment:
- MYSQL_USER=the_db_user
- MYSQL_PASSWORD=the_db_pass
- MYSQL_DATABASE=the_db_name
- MYSQL_ROOT_PASSWORD=the_root_pass
- TERM=xterm
```
### X-Debug
When you set
`W
P
_DEBUG=true`
in container environment, the X-Debug
When you set
`W
ORDPRESS
_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`
.
#### Atom users
## Production Environment
Tell your Atom about folder mapping by editing
`config.cson`
. You have
to configure the section called "php-debug". It should look like this:
Without
`WP_DEBUG`
, the container will create automatically the
configuration file to OPCache. You can suppress this behavior by
setting in environment
`OPCACHE=false`
.
```
"php-debug":
PathMaps: [
"remotepath;localpath"
"/var/www/html/;/local/path/to/wordpress/"
]
PhpException:
CatchableFatalError: false
Deprecated: false
FatalError: false
Notice: false
ParseError: false
StrictStandards: false
UnknownError: false
Warning: false
Xdebug: false
ServerPort: 9000
```
docker-compose.yml
0 → 100644
View file @
86cedb98
version
:
'
2'
services
:
web
:
image
:
hacklab/wordpress
environment
:
-
WORDPRESS_DEBUG=true
-
WORDPRESS_DB_USER=the_db_user
-
WORDPRESS_DB_PASSWORD=the_db_pass
-
WORDPRESS_DB_NAME=the_db_name
ports
:
-
"
80:80"
mysql
:
image
:
mariadb
environment
:
-
MYSQL_USER=the_db_user
-
MYSQL_PASSWORD=the_db_pass
-
MYSQL_DATABASE=the_db_name
-
MYSQL_ROOT_PASSWORD=the_root_pass
-
TERM=xterm
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