Skip to content

lukasholzer/robert-holzer

Repository files navigation

Website for Robert Holzer

Codeship Status for lukasholzer/robert-holzer

A Docker Environment for Wordpress Webpack2 with HMR MySql on top of Ubuntu with Apache and PHP7.0

Requirements

Run & build

Run for development

run wordpress: docker-compose up wordpress run frontend for development without docker:

yarn install
yarn run start

Open browser at http://localhost:3000

Run Docker environments

  • run everything with build: docker-compose up with building docker-compose up --build
  • frontend build: docker-compose up frontend with building docker-compose up --build frontend
  • wordpress build: docker-compose up wordpress with building docker-compose up --build wordpress

Commands

A short list of useful commands for this Bootstrapping

  • run: docker-compose up
  • run in background: docker-compose up -d
  • run and build: docker-compose up --build
  • build: docker-compose build
  • shutdown: docker-compose down
  • list all images: docker images -a
  • list all running images: docker ps

stop all containers and delete all images on Mac

After this commands every image and container has to be pulled again and created. Clean reset if the hard drive is messed up.

docker stop $(docker ps -a -q)
docker rm -v $(docker ps -a -q)
docker rmi $(docker images -q)

Maintainer

Lukas Holzer

Thanks to