A Docker Environment for Wordpress Webpack2 with HMR MySql on top of Ubuntu with Apache and PHP7.0
- Docker Download the app for: Mac OSX or Windows 10 App
- Docker Compose installation with homebrew
brew install docker-compose
run wordpress: docker-compose up wordpress
run frontend for development without docker:
yarn install
yarn run start
Open browser at http://localhost:3000
- run everything with build:
docker-compose up
with buildingdocker-compose up --build
- frontend build:
docker-compose up frontend
with buildingdocker-compose up --build frontend
- wordpress build:
docker-compose up wordpress
with buildingdocker-compose up --build wordpress
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
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)
Lukas Holzer
- Email: office@lukasholzer.com
- Twitter: @luka5c0m
- Web: www.lukasholzer.com