Welcome to this humble repo to facilitate Woonuxt development environment. Feel free to comment or correct. Due to the choice of Overlay2 filesysem for docker... should be working only on linux and maybe on mac.
Step 0 : Visit π WooNuxt official website π
Clone repo π₯·
git clone [email protected]:fabdao/docker-woonuxt.git
Navigate π£
cd docker-woonuxt
Fetch git submodule Woonuxt and Wordpres π₯·ππͺ΅
git submodule init
git submodule update
Copy initial docker compose file for run βοΈπ
cp docker/initial.docker-compose.yml docker-compose.yml
Copy .env file β
β οΈ π«
cp docker/.env.example .env
Try to run docker π³
docker compose up
List ALL Running Containers
docker ps
List ALL Running Containers (including STOPPED)
docker ps -a
Unmount Docker containers
docker compose down
Display Docker logΒ΄s
docker compose logs mysql-db
Display Docker logΒ΄s
docker inspect mysql-db
Stop Docker
sudo systemctl stop docker
Start Docker
sudo systemctl stop start
Update permissions for DB folder
sudo chown -R 999:999 ./docker/db/data
sudo chmod -R 770 ./docker/db/data
Display docker's infos :
sudo docker info | grep -i overlay
Wrong output :
Correct output :
PrΓ©requiste : please take time to follow this guide (5min) : docker's overlay official documentation β
Stop Docker
sudo systemctl stop docker
Edit
/etc/docker/daemon.json. If it doesn't yet exist, create it.
Assuming that the file was empty, add the following contents :
{ "storage-driver": "overlay2" }
Start Docker
sudo systemctl stop start
daemon.json file contains invalid JSON.
Verify that the daemon is using the overlay2 storage driver
docker info
Use the docker info command and look for Storage Driver
Storage Driver: overlay2
In my case only
defaultworks...
Open your browser to http://localhost, normally at this point you should be able to see this screen :
Download Woonuxt Settings plugin π¦
An outdated ZIP to upload is also located at
assets/woonuxt/woonuxt-settings.zip
Copy .htaccess from
src/wordpress/.htaccesstodocker/wordpress/.htaccess:
Edit
docker/wordpress/.htaccessuncommenting the bottom linephp_value upload_max_filesize 256M
Reset wordpress container folder permission
sudo chown -R www-data:www-data docker/wordpress
Verify permission inside wordpress container
docker exec -i wordpress-crm ls -l /var/www/html/.htaccess
Verify .htaccess inside wordpress container
docker exec -i wordpress-crm cat /var/www/html/.htaccess
Reset wordpress container folder permission
sudo chown -R www-data:www-data docker/wordpress
Add
http://localhost:3000into Front End URL parameter and donΒ΄t forget to push SAVE Button at the end of this page...
Go to Tools > Import and install and run Wordpress importer (last one)!
Import
assets/sample-data/sample_products.xml
Rendez-vous at GraphQL > Settings > WPGraphQL General Settings section and set like so...
Rendez-vous at GraphQL > Settings > Headless section and set like so... ( maybe advanced options buttons should be toggle at the upper-right of the screen)
Edit
docker-compose.yml: uncomment the woonuxt service to enable it
Rebuild your stack :
docker compose upπ€



















