Easy wordpress packaged with nginx and php7
1.6K
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.
git clone https://greathouse.technology/web/greathouse-wordpress.gitcd greathouse-wordpressbin/configure-docker.shdocker build -t jessegreathouse/greathouse-wordpress .
docker push jessegreathouse/greathouse-wordpress
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
docker exec -ti greathouse-wordpresss run_tests.sh
Content type
Image
Digest
Size
289 MB
Last updated
about 5 years ago
docker pull jessegreathouse/greathouse-wordpress