Git Product home page Git Product logo

dockpress's Introduction

DockPress is a dockerized version of WordPress inspired heavily by the Roots.io approach to managing a modern WordPress application.

Features

  • Pre-defined development workflow using a single script
  • Support for simple initialization of Bedrock and Sage
  • Composer package management
  • WP-CLI commands for easier administration

Requirements

Installation

  1. Run the initialization command with the develop script:

./develop init your-theme-name

  1. Update environment variables in src/.env file:
  • DB_NAME - Database name
  • DB_USER - Database user
  • DB_PASSWORD - Database password
  • DB_HOST - Database host
  • WP_ENV - Set to environment (development, staging, production)
  • WP_HOME - Full URL to WordPress home (http://example.dev)
  • WP_SITEURL - Full URL to WordPress including subdirectory (http://example.dev/wp)
  • AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, NONCE_SALT - Generate these at https://roots.io/salts.html

The develop script sets defaults for the DB environment variables so if you aren't using custom values you should specify the following values:

DB_NAME=wordpress
DB_USER=wordpress
DB_PASSWORD=secret
DB_HOST=mysql
  1. Bring the Docker environment online with ./develop up -d

  2. Create an entry in your hostfile mapping the WP_HOME address to 127.0.0.1

  3. Access WP admin at http://example.dev/wp/wp-admin

Contributing

Contributions are welcome from everyone. I don't consider myself an expert here since I only work on WordPress projects once in a blue moon. Check out the contributing guidelines to help you get started.

dockpress's People

Contributors

joepurdy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dockpress's Issues

Possible permission issue: Nginx can't write to /var/www/html

I'm submitting a...

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

I can't upload an an asset / plugin / theme since the upload folder is not writeable.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://asciinema.org/

  1. Go to the backend
  2. Go to Media
  3. Upload an image

What is the expected behavior?

Assets can be uploaded and are stored correctly.

Please tell me about your environment:

OS: OSX, Linux

Other information

It might help to set the owner of /var/www/html to www-data so nginx can write files.
Something like:
RUN set -ex; \ chown -R www-data:www-data /var/www

Cannot create container for service app: the working directory 'C:/Program Files/Git/var/www/html' is invalid, it needs to be an absolute path

I'm submitting a...

  • [X ] bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

Get error on $ ./develop init ao

mkdir: cannot create directory โ€˜srcโ€™: File exists
Cannot create container for service app: the working directory 'C:/Program Files/Git/var/www/html' is invalid, it needs to be an absolute path
Cannot create container for service app: the working directory 'C:/Program Files/Git/var/www/html/web/app/themes' is invalid, it needs to be an absolute path

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://asciinema.org/

What is the expected behavior?

What is the motivation/use case for changing the behavior?

Please tell me about your environment:

Windows 10
Git Bash

OS: [Windows | OSX | Linux]

Other information

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.