-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* big refactor + improvements/bugfixes * add security fix from #98 * fix rewrite flush * Add php7.1 dockerfile * adjust volume check from grout=1000 to group!=root for better coverage * address items from code review
- Loading branch information
Showing
15 changed files
with
539 additions
and
526 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
|
||
# Quickstart | ||
|
||
The only thing you need to get started is a `docker-compose.yml` file: | ||
|
||
```yml | ||
version: '3' | ||
services: | ||
wordpress: | ||
image: visiblevc/wordpress:latest | ||
ports: | ||
- 8080:80 | ||
- 443:443 | ||
volumes: | ||
- ./data:/data # Required if importing an existing database | ||
- ./tweaks.ini:/usr/local/etc/php/conf.d/tweaks.ini # Optional tweaks to the php.ini config | ||
- ./wp-content/uploads:/app/wp-content/uploads | ||
- ./yourplugin:/app/wp-content/plugins/yourplugin # Plugin development | ||
- ./yourtheme:/app/wp-content/themes/yourtheme # Theme development | ||
environment: | ||
DB_HOST: db # must match db service name below | ||
DB_NAME: wordpress | ||
DB_PASS: root # must match below | ||
PLUGINS: >- | ||
academic-bloggers-toolkit, | ||
co-authors-plus, | ||
[WP-API]https://github.com/WP-API/WP-API/archive/master.zip, | ||
URL_REPLACE: yoursite.com,localhost:8080 | ||
WP_DEBUG: 'true' | ||
db: | ||
image: mysql:5.7 # or mariadb:10 | ||
volumes: | ||
- data:/var/lib/mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
volumes: | ||
data: {} | ||
``` | ||
**Need PHPMyAdmin? Add it as a service** | ||
```yml | ||
version: '3' | ||
services: | ||
wordpress: | ||
# same as above | ||
db: | ||
# same as above | ||
phpmyadmin: | ||
image: phpmyadmin/phpmyadmin | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
ports: | ||
- 22222:80 | ||
volumes: | ||
data: | ||
``` | ||
## Running the example | ||
1. Run the following command in the root of the example directory. | ||
```sh | ||
$ docker-compose up -d && docker-compose logs -f wordpress | ||
``` | ||
|
||
2. When the build is finished, hit <kbd>ctrl</kbd>-<kbd>c</kbd> to detach from the logs and visit `localhost:8080` in your browser. | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: '3' | ||
services: | ||
wordpress: | ||
image: visiblevc/wordpress:0.15.0-php7.1 | ||
ports: | ||
- 8080:80 | ||
- 443:443 | ||
volumes: | ||
- ./data:/data | ||
environment: | ||
DB_NAME: wordpress | ||
DB_PASS: root | ||
PLUGINS: >- | ||
academic-bloggers-toolkit, | ||
co-authors-plus, | ||
[WP-API]https://github.com/WP-API/WP-API/archive/master.zip, | ||
db: | ||
image: mariadb:10 # or mysql:5.7 | ||
volumes: | ||
- data:/var/lib/mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
phpmyadmin: | ||
image: phpmyadmin/phpmyadmin | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root | ||
ports: | ||
- 22222:80 | ||
volumes: | ||
data: |
File renamed without changes.
Oops, something went wrong.