-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,880 changed files
with
969,347 additions
and
0 deletions.
There are no files selected for viewing
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,98 @@ | ||
### Documentation available at https://wodby.com/docs/stacks/wordpress/local | ||
### Changelog can be found at https://github.com/wodby/docker4wordpress/releases | ||
### Images tags format explained at https://github.com/wodby/docker4wordpress#images-tags | ||
|
||
### PROJECT SETTINGS | ||
|
||
PROJECT_NAME=my_wordpress_project | ||
PROJECT_BASE_URL=wp.docker.localhost | ||
|
||
DB_NAME=wordpress | ||
DB_USER=wordpress | ||
DB_PASSWORD=wordpress | ||
DB_ROOT_PASSWORD=password | ||
DB_HOST=mariadb | ||
|
||
### --- MARIADB ---- | ||
|
||
MARIADB_TAG=10.4-3.6.4 | ||
#MARIADB_TAG=10.3-3.6.4 | ||
#MARIADB_TAG=10.2-3.6.4 | ||
#MARIADB_TAG=10.1-3.6.4 | ||
|
||
### --- VANILLA WORDPRESS ---- | ||
|
||
WORDPRESS_TAG=5-4.17.10 | ||
|
||
### --- PHP ---- | ||
|
||
# Linux (uid 1000 gid 1000) | ||
|
||
PHP_TAG=7.3-dev-4.13.10 | ||
#PHP_TAG=7.2-dev-4.13.10 | ||
#PHP_TAG=7.1-dev-4.13.10 | ||
#PHP_TAG=5.6-dev-4.13.10 | ||
|
||
# macOS (uid 501 gid 20) | ||
|
||
#PHP_TAG=7.3-dev-macos-4.13.10 | ||
#PHP_TAG=7.2-dev-macos-4.13.10 | ||
#PHP_TAG=7.1-dev-macos-4.13.10 | ||
#PHP_TAG=5.6-dev-macos-4.13.10 | ||
|
||
### --- NGINX ---- | ||
|
||
NGINX_TAG=1.17-5.6.8 | ||
#NGINX_TAG=1.16-5.6.8 | ||
|
||
### --- REDIS --- | ||
|
||
REDIS_TAG=5-3.1.3 | ||
#REDIS_TAG=4-3.1.3 | ||
|
||
### --- NODE --- | ||
|
||
NODE_TAG=12-0.24.2 | ||
#NODE_TAG=10-0.24.2 | ||
#NODE_TAG=8-0.24.2 | ||
|
||
### --- VARNISH --- | ||
|
||
VARNISH_TAG=6.0-4.3.4 | ||
#VARNISH_TAG=4.1-4.3.4 | ||
|
||
### --- SOLR --- | ||
|
||
SOLR_TAG=8-4.0.4 | ||
#SOLR_TAG=7-4.0.4 | ||
#SOLR_TAG=6-4.0.4 | ||
#SOLR_TAG=5-4.0.4 | ||
|
||
### --- ELASTICSEARCH --- | ||
|
||
ELASTICSEARCH_TAG=7-5.2.0 | ||
#ELASTICSEARCH_TAG=6-5.2.0 | ||
|
||
### --- KIBANA --- | ||
|
||
KIBANA_TAG=7-5.2.0 | ||
#KIBANA_TAG=6-5.2.0 | ||
|
||
### --- POSTGRESQL ---- | ||
|
||
POSTGRES_TAG=11-1.7.3 | ||
#POSTGRES_TAG=10-1.7.3 | ||
#POSTGRES_TAG=9.6-1.7.3 | ||
#POSTGRES_TAG=9.5-1.7.3 | ||
#POSTGRES_TAG=9.4-1.7.3 | ||
|
||
### OTHERS | ||
|
||
ADMINER_TAG=4-3.6.11 | ||
APACHE_TAG=2.4-4.1.3 | ||
ATHENAPDF_TAG=2.10.0 | ||
MEMCACHED_TAG=1-2.3.4 | ||
OPENSMTPD_TAG=6.0-1.5.3 | ||
RSYSLOG_TAG=latest | ||
WEBGRIND_TAG=1.5-1.11.9 | ||
XHPROF_TAG=1.4.9 |
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,21 @@ | ||
### Codebase | ||
Built-in vanilla WordPress or mounted codebase | ||
|
||
### Host OS | ||
e.g. macOS Sierra | ||
|
||
### Docker info output | ||
``` | ||
# Run "docker info" on the host machine and paste output here | ||
``` | ||
|
||
### Docker compose file | ||
Make sure you remove all commented services. | ||
```yml | ||
# Content of your docker-compose.yml file. Make sure you remove all sensible information you might have there. | ||
``` | ||
|
||
### Logs output | ||
``` | ||
# Run "docker-compose logs [service]". Let's say you get 500 error for some reason then it'll be helpful to provide logs for php and http server (nginx/apache) services. | ||
``` |
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,5 @@ | ||
.idea/ | ||
.docker-sync | ||
|
||
build | ||
docker |
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,36 @@ | ||
language: bash | ||
|
||
services: | ||
- docker | ||
|
||
env: | ||
matrix: | ||
- WORDPRESS_VER=4 PHP_VER=7.3 | ||
- WORDPRESS_VER=4 PHP_VER=7.2 | ||
- WORDPRESS_VER=4 PHP_VER=7.1 | ||
- WORDPRESS_VER=4 PHP_VER=5.6 GITHUB_RELEASE=1 | ||
|
||
script: | ||
- set -e | ||
- make test | ||
- cp docker.mk Makefile | ||
- tar -czf docker4wordpress.tar.gz docker-compose.yml docker-compose.override.yml docker-sync.yml Makefile .env traefik.yml | ||
|
||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_ACCESS_TOKEN | ||
overwrite: true | ||
skip_cleanup: true | ||
file_glob: true | ||
file: | ||
- docker4wordpress.tar.gz | ||
on: | ||
tags: true | ||
condition: $GITHUB_RELEASE = 1 | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: never | ||
on_failure: always |
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,8 @@ | ||
The MIT License (MIT) | ||
Copyright (c) 2016 Wodby, Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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,8 @@ | ||
include docker.mk | ||
|
||
.PHONY: test | ||
|
||
PHP_VER ?= 7.2 | ||
|
||
test: | ||
cd ./tests && PHP_VER=$(PHP_VER) ./run.sh |
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,125 @@ | ||
# Docker-based WordPress Stack | ||
|
||
[](https://travis-ci.org/wodby/docker4wordpress) | ||
|
||
## Introduction | ||
|
||
Docker4WordPress is a set of docker images optimized for WordPress. Use docker-compose.yml file from this repository to spin up a local environment for WordPress on Linux, macOS and Windows. | ||
|
||
* Read the docs on [**how to use**](https://wodby.com/docs/stacks/wordpress/local#usage) | ||
* Join our community on [Spectrum](https://spectrum.chat/wodby/wordpress) and ask questions in `#WordPress` channel | ||
* Follow [@wodbycloud](https://twitter.com/wodbycloud) for future announcements | ||
|
||
## Stack | ||
|
||
The WordPress stack consist of the following containers: | ||
|
||
| Container | Versions | Service name | Image | Default | | ||
| ------------- | ----------------------- | ------------ | ---------------------------------- | ------- | | ||
| [Nginx] | 1.17, 1.16 | `nginx` | [wodby/nginx] | ✓ | | ||
| [Apache] | 2.4 | `apache` | [wodby/apache] | | | ||
| [WordPress] | 5 | `php` | [wodby/wordpress] | ✓ | | ||
| [PHP] | 7.3, 7.2, 7.1, 5.6 | `php` | [wodby/wordpress-php] | | | ||
| [MariaDB] | 10.4, 10.3, 10.2, 10.1 | `mariadb` | [wodby/mariadb] | ✓ | | ||
| [PostgreSQL] | 11, 10, 9.x | `postgres` | [wodby/postgres] | | | ||
| [Redis] | 5, 4 | `redis` | [wodby/redis] | | | ||
| [Memcached] | 1 | `memcached` | [wodby/memcached] | | | ||
| [Varnish] | 6.0, 4.1 | `varnish` | [wodby/varnish] | | | ||
| [Node.js] | 12, 10, 8 | `node` | [wodby/node] | | | ||
| [Solr] | 8, 7, 6, 5 | `solr` | [wodby/solr] | | | ||
| [Elasticsearch] | 7, 6 | `elasticsearch` | [wodby/elasticsearch] | | | ||
| [Kibana] | 7, 6 | `kibana` | [wodby/kibana] | | | ||
| [AthenaPDF] | 2.10.0 | `athenapdf` | [arachnysdocker/athenapdf-service] | | | ||
| [Mailhog] | latest | `mailhog` | [mailhog/mailhog] | ✓ | | ||
| [OpenSMTPD] | 6.0 | `opensmtpd` | [wodby/opensmtpd] | | | ||
| [Rsyslog] | latest | `rsyslog` | [wodby/rsyslog] | | | ||
| [Blackfire] | latest | `blackfire` | [blackfire/blackfire] | | | ||
| [Webgrind] | 1.5 | `webgrind` | [wodby/webgrind] | | | ||
| [XHProf viewer] | latest | `xhprof` | [wodby/xhprof] | | | ||
| Adminer | 4.6 | `pma` | [wodby/adminer] | | | ||
| phpMyAdmin | latest | `pma` | [phpmyadmin/phpmyadmin] | | | ||
| Portainer | latest | `portainer` | [portainer/portainer] | ✓ | | ||
| Traefik | latest | `traefik` | [_/traefik] | ✓ | | ||
|
||
Supported WordPress versions: 5 | ||
|
||
❗️PHP 5.6 [has reached end of life](http://php.net/supported-versions.php) and no longer supported by PHP team. PHP 7.1 is currently in security fix only mode. We strongly advise you to migrate to the latest stable PHP version. | ||
|
||
## Documentation | ||
|
||
Full documentation is available at https://wodby.com/docs/stacks/wordpress/local. | ||
|
||
## Images' tags | ||
|
||
Images tags format is `[VERSION]-[STABILITY_TAG]` where: | ||
|
||
`[VERSION]` is the _version of an application_ (without patch version) running in a container, e.g. `wodby/nginx:1.15-x.x.x` where Nginx version is `1.15` and `x.x.x` is a stability tag. For some images we include both major and minor version like PHP `7.2`, for others we include only major like Redis `5`. | ||
|
||
`[STABILITY_TAG]` is the _version of an image_ that corresponds to a git tag of the image repository, e.g. `wodby/mariadb:10.2-3.3.8` has MariaDB `10.2` and stability tag [`3.3.8`](https://github.com/wodby/mariadb/releases/tag/3.3.8). New stability tags include patch updates for applications and image's fixes/improvements (new env vars, orchestration actions fixes, etc). Stability tag changes described in the corresponding a git tag description. Stability tags follow [semantic versioning](https://semver.org/). | ||
|
||
We highly encourage to use images only with stability tags. | ||
|
||
## Maintenance | ||
|
||
We regularly update images used in this stack and release them together, see [releases page](https://github.com/wodby/docker4wordpress/releases) for full changelog and update instructions. Most of routine updates for images and this project performed by [the bot](https://github.com/wodbot) via scripts located at [wodby/images](https://github.com/wodby/images). | ||
|
||
## Beyond local environment | ||
|
||
Docker4WordPress is a project designed to help you spin up local environment with docker-compose. If you want to deploy a consistent stack with orchestrations to your own server, check out [ Wodby](https://wodby.com/stacks/wordpress). | ||
|
||
## Other Docker4x projects | ||
|
||
* [docker4php](https://github.com/wodby/docker4php) | ||
* [docker4drupal](https://github.com/wodby/docker4drupal) | ||
* [docker4ruby](https://github.com/wodby/docker4ruby) | ||
* [docker4python](https://github.com/wodby/docker4python) | ||
|
||
## License | ||
|
||
This project is licensed under the MIT open source license. | ||
|
||
[Apache]: https://wodby.com/docs/stacks/wordpress/containers#apache | ||
[AthenaPDF]: https://wodby.com/docs/stacks/wordpress/containers#athenapdf | ||
[Blackfire]: https://wodby.com/docs/stacks/wordpress/containers#blackfire | ||
[Elasticsearch]: https://wodby.com/docs/stacks/elasticsearch | ||
[Kibana]: https://wodby.com/docs/stacks/elasticsearch | ||
[Mailhog]: https://wodby.com/docs/stacks/wordpress/containers#mailhog | ||
[MariaDB]: https://wodby.com/docs/stacks/wordpress/containers#mariadb | ||
[Memcached]: https://wodby.com/docs/stacks/wordpress/containers#memcached | ||
[Nginx]: https://wodby.com/docs/stacks/wordpress/containers#nginx | ||
[Node.js]: https://wodby.com/docs/stacks/wordpress/containers#nodejs | ||
[OpenSMTPD]: https://wodby.com/docs/stacks/wordpress/containers#opensmtpd | ||
[PHP]: https://wodby.com/docs/stacks/wordpress/containers#php | ||
[PostgreSQL]: https://wodby.com/docs/stacks/wordpress/containers#postgresql | ||
[Redis]: https://wodby.com/docs/stacks/wordpress/containers#redis | ||
[Rsyslog]: https://wodby.com/docs/stacks/wordpress/containers#rsyslog | ||
[Solr]: https://wodby.com/docs/stacks/solr | ||
[Varnish]: https://wodby.com/docs/stacks/wordpress/containers#varnish | ||
[Webgrind]: https://wodby.com/docs/stacks/wordpress/containers#webgrind | ||
[Wordpress]: https://wodby.com/docs/stacks/wordpress/containers#php | ||
[XHProf viewer]: https://wodby.com/docs/stacks/php/containers#xhprof-viewer | ||
|
||
[_/traefik]: https://hub.docker.com/_/traefik | ||
[arachnysdocker/athenapdf-service]: https://hub.docker.com/r/arachnysdocker/athenapdf-service | ||
[blackfire/blackfire]: https://hub.docker.com/r/blackfire/blackfire | ||
[mailhog/mailhog]: https://hub.docker.com/r/mailhog/mailhog | ||
[phpmyadmin/phpmyadmin]: https://hub.docker.com/r/phpmyadmin/phpmyadmin | ||
[portainer/portainer]: https://hub.docker.com/r/portainer/portainer | ||
[wodby/adminer]: https://github.com/wodby/adminer | ||
[wodby/apache]: https://github.com/wodby/apache | ||
[wodby/elasticsearch]: https://github.com/wodby/elasticsearch | ||
[wodby/kibana]: https://github.com/wodby/kibana | ||
[wodby/mariadb]: https://github.com/wodby/mariadb | ||
[wodby/memcached]: https://github.com/wodby/memcached | ||
[wodby/nginx]: https://github.com/wodby/nginx | ||
[wodby/node]: https://github.com/wodby/node | ||
[wodby/opensmtpd]: https://github.com/wodby/opensmtpd | ||
[wodby/postgres]: https://github.com/wodby/postgres | ||
[wodby/redis]: https://github.com/wodby/redis | ||
[wodby/rsyslog]: https://github.com/wodby/rsyslog | ||
[wodby/solr]: https://github.com/wodby/solr | ||
[wodby/varnish]: https://github.com/wodby/varnish | ||
[wodby/webgrind]: https://hub.docker.com/r/wodby/webgrind | ||
[wodby/wordpress-php]: https://github.com/wodby/wordpress-php | ||
[wodby/wordpress]: https://github.com/wodby/wordpress | ||
[wodby/xhprof]: https://github.com/wodby/xhprof |
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,16 @@ | ||
version: "3" | ||
|
||
services: | ||
php: | ||
image: wodby/wordpress:$WORDPRESS_TAG | ||
environment: | ||
PHP_FPM_CLEAR_ENV: "no" | ||
volumes: | ||
- codebase:/var/www/html | ||
|
||
nginx: | ||
volumes: | ||
- codebase:/var/www/html | ||
|
||
volumes: | ||
codebase: |
Oops, something went wrong.