Skip to content

Commit

Permalink
WIP: Initial php composer support to install wp plugins and themes
Browse files Browse the repository at this point in the history
  • Loading branch information
mfdeveloper committed Jul 5, 2018
1 parent 8ff56b6 commit 238ed35
Show file tree
Hide file tree
Showing 5 changed files with 309 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# USER => your host's machine user
# UID => Your user ID (to find out, type in terminal => $ id -u)
# GID => Seu grupo (to find out, type in terminal => $ id -g)
UID=
GID=root

DB_NAME=wordpress
DB_USER=wordpress
DB_ROOT_PASSWORD=root
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ db-backup/*.sql
db-backup/*.tar.gz
db-backup/*.zip
db-backup/*.rar

/vendor/
27 changes: 27 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "badassworld/presale-site",
"description": "Sistema/Portal de pré-vendas do grupo do facebook BadassWorld",
"type": "project",
"license": "MIT",
"authors": [
{
"name": "Michel Felipe",
"email": "[email protected]"
}
],
"repositories": [
{
"type": "composer",
"url":"https://wpackagist.org"
}
],
"minimum-stability": "stable",
"require": {
"wpackagist-plugin/akismet":"4.0.8",
"wpackagist-plugin/woocommerce":"3.4.3",
"wpackagist-plugin/woocommerce-domination":"1.1.6",
"wpackagist-plugin/woocommerce-extra-checkout-fields-for-brazil":"*",
"wpackagist-plugin/woocommerce-gateway-paypal-express-checkout":"*",
"wpackagist-plugin/yith-pre-order-for-woocommerce":"*"
}
}
258 changes: 258 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 16 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
COMPOSER_HOME: ${COMPOSER_HOME}

phpmyadmin:
image: phpmyadmin/phpmyadmin
Expand All @@ -27,9 +28,9 @@ services:
MYSQL_PASSWORD: ${DB_PASSWORD}

wordpress:
image: wordpress:latest
depends_on:
- db
image: wordpress:latest
volumes:
- ./wp-content:/var/www/html/wp-content
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
Expand All @@ -45,11 +46,20 @@ services:
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}

wordpress-cli:
depends_on:
- wordpress
build: ./docker-files/wp-cli
volumes:
- wp-src:/wordpress
build: ./docker-files/wp-cli
depends_on:
- wordpress
volumes:
- wp-src:/wordpress

composer:
image: composer:latest
depends_on:
- wordpress
volumes:
- .:/app
- $COMPOSER_HOME:/tmp

volumes:
db-data:
wp-src:

0 comments on commit 238ed35

Please sign in to comment.