Wordpress Docker Webpack Timber Bootstrap
Make sure you have insalled these dependencies
Export these three variables
export DB_ROOT_PWD="yourpassword"
export DB_PWD="yourpassword"
export DB_USER="youruser"
cd theme
npm install
composer install
Start docker
docker-compose up
Start webpack watcher
npm run watch
npm run production
Before deploy your website remember these steps, i've tested it on Ubuntu 18.04 You have a docker-compose-prod.yml, run this command
docker-compose -f docker-compose.yml -f docker-compose-prod.yml up -d
There is a problem with file uploads, i've find this workaround for the moment
sudo find wp-content/ -type d -exec chmod 777 {} +