-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from bueltge/feature/introduce-docker
Introduce docker develop environment
- Loading branch information
Showing
9 changed files
with
690 additions
and
85 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,114 @@ | ||
### 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 | ||
|
||
DOCROOT=/var/www/html | ||
BASE_DIR=. | ||
PROJECT_NAME=multisite_global_media | ||
PROJECT_BASE_URL=multisite-global-media.docker | ||
PROJECT_MOUNT_PATH=/var/www/html/wp-content/plugins/multisite-global-media | ||
|
||
DB_NAME=wordpress | ||
DB_USER=wordpress | ||
DB_PASSWORD=wordpress | ||
DB_ROOT_PASSWORD=password | ||
DB_HOST=mariadb | ||
|
||
WP_ADMIN_USER=admin | ||
WP_ADMIN_PASSWORD=admin | ||
WP_ADMIN_EMAIL=noreply@example.com | ||
|
||
### --- MARIADB ---- | ||
|
||
MARIADB_TAG=10.3-3.4.11 | ||
#MARIADB_TAG=10.2-3.4.11 | ||
#MARIADB_TAG=10.1-3.4.11 | ||
|
||
### --- VANILLA WORDPRESS ---- | ||
|
||
WORDPRESS_TAG=5-4.16.1 | ||
|
||
### --- PHP ---- | ||
|
||
# Linux (uid 1000 gid 1000) | ||
|
||
#PHP_TAG=7.4-dev | ||
#PHP_TAG=7.3-dev-4.12.12 | ||
#PHP_TAG=7.2-dev-4.12.12 | ||
#PHP_TAG=7.1-dev-4.12.12 | ||
PHP_TAG=7.0-dev-4.6.1 | ||
#PHP_TAG=5.6-dev-4.12.12 | ||
|
||
# macOS (uid 501 gid 20) | ||
|
||
#PHP_TAG=7.3-dev-macos-4.12.12 | ||
#PHP_TAG=7.2-dev-macos-4.12.12 | ||
#PHP_TAG=7.1-dev-macos-4.12.12 | ||
#PHP_TAG=7.0-dev-macos-4.6.1 | ||
#PHP_TAG=5.6-dev-macos-4.12.12 | ||
|
||
### --- XDebug --- | ||
|
||
XDEBUG_REMOTE_HOST=10.254.254.254 | ||
XDEBUG_IDE_KEY=PHPSTORM | ||
XDEBUG_SERVER_NAME=docker | ||
|
||
### --- NGINX ---- | ||
|
||
NGINX_TAG=1.17-5.5.0 | ||
#NGINX_TAG=1.16-5.5.0 | ||
|
||
### --- REDIS --- | ||
|
||
REDIS_TAG=5-3.0.8 | ||
#REDIS_TAG=4-3.0.8 | ||
|
||
### --- NODE --- | ||
|
||
NODE_TAG=12-0.16.0 | ||
#NODE_TAG=10-0.16.0 | ||
#NODE_TAG=8-0.16.0 | ||
|
||
### --- VARNISH --- | ||
|
||
VARNISH_TAG=6.0-4.2.9 | ||
#VARNISH_TAG=4.1-4.2.9 | ||
|
||
### --- SOLR --- | ||
|
||
SOLR_TAG=7.7-3.1.3 | ||
#SOLR_TAG=7.6-3.1.3 | ||
#SOLR_TAG=7.5-3.1.3 | ||
#SOLR_TAG=6.6-3.1.3 | ||
#SOLR_TAG=5.5-3.1.3 | ||
|
||
### --- ELASTICSEARCH --- | ||
|
||
ELASTICSEARCH_TAG=7-4.3.1 | ||
#ELASTICSEARCH_TAG=6-4.3.1 | ||
|
||
### --- KIBANA --- | ||
|
||
KIBANA_TAG=7-4.3.1 | ||
#KIBANA_TAG=6-4.3.1 | ||
|
||
### --- POSTGRESQL ---- | ||
|
||
POSTGRES_TAG=11-1.6.3 | ||
#POSTGRES_TAG=10-1.6.3 | ||
#POSTGRES_TAG=9.6-1.6.3 | ||
#POSTGRES_TAG=9.5-1.6.3 | ||
#POSTGRES_TAG=9.4-1.6.3 | ||
|
||
### OTHERS | ||
|
||
ADMINER_TAG=4-3.5.12 | ||
APACHE_TAG=2.4-4.0.7 | ||
ATHENAPDF_TAG=2.10.0 | ||
MEMCACHED_TAG=1-2.2.6 | ||
OPENSMTPD_TAG=6.0-1.4.2 | ||
RSYSLOG_TAG=latest | ||
WEBGRIND_TAG=1.5-1.9.12 | ||
XHPROF_TAG=1.3.12 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Developers | ||
This is a guide for software engineers who wish to take part in the development of this product. | ||
|
||
## Environment Setup | ||
This project declares all of its dependencies, and configures a Docker environment. Follow the | ||
steps described below to set everything up. | ||
|
||
1. Clone the repo, if you haven't already. | ||
2. Copy `.env.example` to `.env`, and change relevant configuration if necessary. | ||
3. Install dependencies with Composer. | ||
|
||
``` | ||
docker-compose run composer install | ||
``` | ||
4. Bring up the environment. | ||
``` | ||
docker-compose up -d | ||
``` | ||
5. Set up the environment. | ||
This involves running a script that will install WP, activate relevant plugins, etc. | ||
For this reason, it must be done by the `php` service. | ||
``` | ||
docker-compose run php /opt/wp-install.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
Oops, something went wrong.