Giter Site home page Giter Site logo

schliflo / bedrock-docker Goto Github PK

View Code? Open in Web Editor NEW
117.0 13.0 23.0 39 KB

Development Setup for Bedrock Wordpress based on Docker

Home Page: https://bedrock-docker.schliflo.de

License: MIT License

Makefile 22.23% Shell 72.47% Dockerfile 5.29%
docker bedrock wordpress development bedrock-docker phpmyadmin dinghy mailhog

bedrock-docker's Introduction

This project is no longer maintained as we developed docker-mate as a successor, which supports more PHP based sytems other than Wordpress, local SSL and is overall more extensible and improved.
I'd highly suggest having a look at the docker-mate repo and the docs.

Bedrock Docker

Easy-to-use Docker setup for local development of Bedrock based Wordpress projects

please note that this is intended for local development - deploying it to production is probably a bad idea

Build Status

Features

  • Automated setup of new and existing Bedrock projects
  • Minimal configuration needed: Enter your project's name and you're good to go
  • Backup/Restore routines for the database
  • MailHog: Catch all outgoing mail for easy mail debugging
  • phpMyAdmin: Direct database access

Screenshot showing Bedrock Docker in action

Requirements

macOS

  • If you're using dinghy that's everything you need
  • For native docker installs you need to configure your system to resolve .docker domains to 127.0.0.1

Linux

  • docker & docker-compose
  • Configure your system to resolve .docker domains to 127.0.0.1

Usage

First time setup

  1. git clone https://github.com/schliflo/bedrock-docker.git your-project
  2. cd your-project
  3. Adjust PROJECT_NAME=bedrock in the Makefile to your projects name (use kebap-case as this is also used for your local development domain)
  4. Run make up and follow the instructions
  5. Your new project should start and you should be greeted with the local URLs where you can access it

Starting, stopping etc...

Run make up to start everything

Run make stop to stop everything

Run make restart to - you probably guessed it - restart everything

Run make rebuild to rebuild the project from the ground (current database will be lost if not backed up)

Using composer

Bedrock Docker abstracts composer into a container. You can use make composer like you would use composer standalone:

# install a wordpress plugin:
make composer require wpackagist-plugin/wp-mail-smtp

# update wordpress & plugins:
make composer update

Backup a database

Run make mysql-backup creates a compressed backup of your database in the backup folder. If you need a more fine grained backup you can use phpMyAdmin

Restoring a database

Use phpMyAdmin to restore the database or use make mysql-restore if you created a backup previously

Upgrading the project & development containers

Run make upgrade

Logging & information

Run make logs or make logs app for just the logs of all or specific containers

Run make state to see the current state of your containers

Run make urls to see the URLs of the project

Accessing containers

Run make ssh app or make logs web to access the specific containers

Deleting the containers

Run make destroy

Need help or missing a feature?

Open an issue over here

Feedback is generally appreciated ;)

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.