Skip to content

Commit

Permalink
Merge pull request #101 from bueltge/feature/introduce-docker
Browse files Browse the repository at this point in the history
Introduce docker develop environment
  • Loading branch information
bueltge authored Jan 3, 2020
2 parents 3235425 + 6acf275 commit b3d3d75
Show file tree
Hide file tree
Showing 9 changed files with 690 additions and 85 deletions.
114 changes: 114 additions & 0 deletions .env.example
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
# .idea/sqlDataSources.xml
# .idea/dynamic.xml

## Environment
.env

## File-based project format
*.ipr
*.iws
Expand Down
29 changes: 29 additions & 0 deletions DEVELOPERS.md
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
```
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"squizlabs/php_codesniffer": "^3",
"inpsyde/php-coding-standards": "^0.13",
"brain/monkey": "^2.2",
"phpunit/phpunit": "^6.0"
"phpunit/phpunit": "^6.0",
"johnpbloch/wordpress-core": " ^5.0",
"woocommerce/woocommerce": "^3.0"
},
"autoload": {
"psr-4": {
Expand All @@ -57,5 +59,8 @@
"zip": "composer archive --format=zip --file=dist",
"build": "./scripts/build",
"analyze": "phpstan analyse src"
},
"extra": {
"installer-disable": true
}
}
Loading

0 comments on commit b3d3d75

Please sign in to comment.