Git Product home page Git Product logo

dockposerpress's Introduction

Dockerized bedrock wordpress base

Boilerplate images for running bedrock wordpress sites in docker containers. The runner image has the mysql driver for php preconfigured and an entrypoint that waits for the database to be up before enabling plugins and starting php-fpm.

Usage

The bjornsnoen/dockposerpress:installer image is used to install plugins/themes and to apply any patches etc. The bjornsnoen/dockposerpress:runner image is used as a base for the runtime container. An example for how to use these images to build a blog container would be something like this:

FROM bjornsnoen/dockposerpress:installer as install-step
COPY my/repo/some-plugin.patch /app/patches/
# Refer to https://github.com/cweagans/composer-patches#using-an-external-patch-file for format
COPY my/repo/composer.patches.json /app/composer.patches.json
RUN composer require wpackagist-plugin/some-plugin:^version etc.


FROM bjornsnoen/dockposerpress:runner as runner
WORKDIR /var/www/blog
COPY --from=install-step /app /var/www/blog

The resulting runner container requires the following environment variables to be set

Variable Format Notes
DB_HOST host:port Copy all the DB_ settings from your database container
DB_USER username
DB_PASSWORD password
DB_NAME dbname
WP_HOME https://youradress.com
WP_SITEURL https://youradress.com/wp/ Should always be /wp/ unless you change the bedrock structure

There is also bjornsnoen/dockposerpress:runner-debug for if you need xdebug and mhsendmail.

dockposerpress's People

Contributors

bjornsnoen avatar

Watchers

 avatar  avatar

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.