Coder Social home page Coder Social logo

wordpress-docker-boilerplate's Introduction

Docker Development environment for Wordpress based webpage

Note that this is ment to be used as a development environment only, there are poor cleartext passwords definded in various files that should be changed and preferably stored in environment variables that makes this unfit for a production environment.

Install and run development environment

Docker-compose is setup for development on this project. So the only software you need setup locally is:

  • Docker
  • Docker-compose

Hosts

In you hosts file add:

127.0.0.1	wordpress.dev

Start Wordpress server

Run in root of repo:

$ docker-compose up

Access site

http://wordpress.dev:8080

Dump db locally

To save everything in the db to an sql file, run the supplied script. (you might want to change the name of the conatiner in the script)

$ ./dumpDb.sh

This will create/overwrite the file "db/database-dump.sql", And if this file is present when first runing docker-compose on a new system it will be parsed by the db container. Making it usefull for keeping db changes in git. (Another reason to only use this as a development environment). You can also force a db rebuild by running:

$ docker-compose down
$ docker-compose rm -v
$ docker-compose up

Troubleshooting

Depending on you OS the folders created by docker might be write protected, you can revert this with:

$ chown -R username:group .

wordpress-docker-boilerplate's People

Contributors

rickisen avatar

Stargazers

José Antonio avatar

Watchers

James Cloos 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.