Important: this repo does not apply any security measures. It is not meant for production environments!
- ProcessWire version: Use the
imageline indocker-compose.ymlto specify the version to use. Refer to https://hub.docker.com/r/poljpocket/processwire for available tags. - Web user ID: To allow files be edited locally and also altered by ProcessWire, you need to specify the
WEB_USER_IDenvironment variable. You can get your local users' ID by runningid -uin a terminal.
Note: You can pre-populate the site folder with a site profile of your choice. If you don't, the default site profile will be installed automatically.
Run the composition normally (see "Running ProcessWire" below).
Head to http://localhost:8080 in a browser and complete the ProcessWire installation.
Use docker for database name, user and password. Use database for database host.
Create and run containers for the composition with docker compose up -d.
- ProcessWire runs at http://localhost:8080
- phpmyadmin runs at http://localhost:8081
In the dbdump.sh and dbrestore.sh files, set the DB_CONTAINER variable to the name or id of your database container.
With the database container running,
- executing the
dbdump.shscript will dump the database intodatabase.sqlin thedatafolder. - executing the
dbrestore.shscript will restore the database fromdatabase.sqlin thedatafolder.
Consider using git LFS for the /site/assets/files folder where all the uploads are located.