-
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
0 parents
commit 5e5de22
Showing
23 changed files
with
675 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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,19 @@ | ||
DB_NAME=database | ||
DB_USER=root | ||
DB_PASSWORD=root | ||
DB_HOST=mysql | ||
DB_PREFIX=wp_ | ||
|
||
WP_ENV=development | ||
WP_HOME=http://localhost | ||
WP_SITEURL=http://localhost/wp | ||
|
||
# Generate your keys here: https://api.wordpress.org/secret-key/1.1/salt/ | ||
AUTH_KEY= | ||
SECURE_AUTH_KEY= | ||
LOGGED_IN_KEY= | ||
NONCE_KEY= | ||
AUTH_SALT= | ||
SECURE_AUTH_SALT= | ||
LOGGED_IN_SALT= | ||
NONCE_SALT= |
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,42 @@ | ||
# Application | ||
public/app/plugins/* | ||
public/app/mu-plugins/* | ||
public/app/upgrade | ||
public/app/uploads/* | ||
|
||
# Must use plugins | ||
!public/app/mu-plugins/*/ | ||
|
||
|
||
#Wordpress | ||
public/app/languages | ||
!public/app/languages/.gitkeep | ||
public/wp | ||
public/.htaccess | ||
|
||
|
||
# Composer | ||
vendor/* | ||
!vendor/.gitkeep | ||
|
||
|
||
# Ignore database | ||
database/* | ||
|
||
|
||
# Dotenv | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
|
||
# Node_modules | ||
node_modules | ||
|
||
|
||
# These files must die | ||
*.DS_Store | ||
*.sass-cache | ||
*.log | ||
|
||
!.gitkeep |
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 @@ | ||
# WP-Dockerized. | ||
- A Wordpress starting point based on Docker and [Bedrock](https://roots.io/bedrock/). | ||
- PHP 7, MariaDB, Nginx | ||
- [WP-CLI](http://wp-cli.org/) support | ||
- phpMyAdmin | ||
- [Mailcatcher](https://mailcatcher.me/) | ||
|
||
## Requirements: | ||
* Docker | ||
* Composer | ||
--------------- | ||
### Installation instructions | ||
* Clone this repository | ||
* Copy .env.example to .env and set preferred database name and database prefix: | ||
* DB_NAME - Desired database name | ||
* DB_PREFIX - Desired database prefix | ||
* Root user and password is setup so you can leave these or create a new user/pass and set those here | ||
* Generate salts and keys for Wordpress [here](https://api.wordpress.org/secret-key/1.1/salt/) and fill those in | ||
* From root folder: | ||
- `composer install` | ||
- `docker-compose up` | ||
|
||
+ Visit [http://localhost](http://localhost) for Wordpress | ||
+ Visit [http:/localhost:70](http:/localhost:70) for PHPMyAdmin (default user & pass is root/root) | ||
+ Visit [http:/localhost:1080](http:/localhost:1080) for Mailcatcher | ||
|
||
## Guide | ||
* This setup is based on the Bedrock boilerplate. [https://roots.io/bedrock/] | ||
* Use composer to manage dependencies (Wordpress, themes, plugins) |
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,46 @@ | ||
{ | ||
"name": "wp-dockerized", | ||
"type": "project", | ||
"description": "Wordpress starting point based on Docker and Bedrock", | ||
"homepage": "http://johandahl.com", | ||
"authors": [ | ||
{ | ||
"name" : "Johan Dahl", | ||
"email" : "[email protected]", | ||
"homepage": "http://johandahl.com" | ||
} | ||
], | ||
"keywords": [ | ||
"wordpress", "stack", "composer", "docker", "wp" | ||
], | ||
"minimum-stability": "dev", | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://wpackagist.org" | ||
} | ||
], | ||
"config": { | ||
"vendor-dir": "vendor" | ||
}, | ||
"require": { | ||
"composer/installers": "v1.0.12", | ||
"vlucas/phpdotenv": "v1.1.0", | ||
"johnpbloch/wordpress": "4.8" | ||
}, | ||
"require-dev": { | ||
}, | ||
"extra": { | ||
"installer-paths": { | ||
"public/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"], | ||
"public/app/plugins/{$name}/": ["type:wordpress-plugin"], | ||
"public/app/themes/{$name}/": ["type:wordpress-theme"] | ||
}, | ||
"dropin-paths": { | ||
"public/app/languages/": ["vendor:koodimonni-language"], | ||
"public/app/languages/plugins/": ["vendor:koodimonni-plugin-language"], | ||
"public/app/languages/themes/": ["vendor:koodimonni-theme-language"] | ||
}, | ||
"wordpress-install-dir": "public/wp" | ||
} | ||
} |
Oops, something went wrong.