Sign inSign up

jessegreathouse/greathouse-wordpress

By jessegreathouse

•Updated about 5 years ago

Easy wordpress packaged with nginx and php7

Image
1

1.6K

jessegreathouse/greathouse-wordpress repository overview

⁠greathouse-wordpress

⁠How to Install

These instructions assume that you've already created a useable database for your Wordpess installation, along with having the required credentials. If you need help on creating a database, you can learn how, here⁠.

  • Download the git repository
    • git clone https://greathouse.technology/web/greathouse-wordpress.git
  • Change to the greathouse-wordpress directory
    • cd greathouse-wordpress

⁠Docker Installation

⁠Docker Management Instructions

⁠Building the App

docker build -t jessegreathouse/greathouse-wordpress .

⁠Pushing the App

docker push jessegreathouse/greathouse-wordpress

⁠Running the APP

docker run -p 3000:3000 \
    -e ENV=prod \
    -e DEBUG=false \
    -e FORCE_SSL=false \
    -e DIR="/app" \
    -e BIN="/app/bin" \
    -e ETC="/app/etc" \
    -e OPT="/app/opt" \
    -e SRC="/app/src" \
    -e TMP="/app/tmp" \
    -e VAR="/app/var" \
    -e WEB="/app/web" \
    -e CACHE_DIR="/app/var/cache" \
    -e LOG_DIR="/app/var/logs" \
    -e REDIS_HOST=redis \
    -e DB_NAME=wp_name \
    -e DB_USER=wp_user \
    -e DB_PASSWORD="wp_password" \
    -e DB_HOST="wp_host" \
    -e DB_PORT=3306 \
    -v $(pwd)/error.log:/app/error.log \
    -v $(pwd)/web/wp-config.php:/app/web/wp-config.php \
    -v $(pwd)/etc/nginx/nginx.conf:/app/etc/nginx/nginx.conf \
    -v $(pwd)/web/wp-content/plugins:/app/web/wp-content/plugins \
    -v $(pwd)/web/wp-content/themes:/app/web/wp-content/themes \
    -v $(pwd)/web/wp-content/uploads:/app/web/wp-content/uploads \
    --name greathouse-wordpress \
    jessegreathouse/greathouse-wordpress

⁠Running Tests

docker exec -ti greathouse-wordpresss run_tests.sh

Tag summary

Content type

Image

Digest

Size

289 MB

Last updated

about 5 years ago

docker pull jessegreathouse/greathouse-wordpress