Skip to content

Commit

Permalink
First draft
Browse files Browse the repository at this point in the history
  • Loading branch information
kyotoprotokollet committed Jun 30, 2017
0 parents commit 5e5de22
Show file tree
Hide file tree
Showing 23 changed files with 675 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
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
19 changes: 19 additions & 0 deletions .env.example
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=
42 changes: 42 additions & 0 deletions .gitignore
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
29 changes: 29 additions & 0 deletions README.md
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)
46 changes: 46 additions & 0 deletions composer.json
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"
}
}
Loading

0 comments on commit 5e5de22

Please sign in to comment.