Skip to content

poljpocket/processwire-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Docker Composition for ProcessWire

Not for production environments!

Configuration (.env file)

  • PW_VERSION: the version of ProcessWire you want to run (has to exist as a tag in the ProcessWire GitHub repository).
  • WEB_USER_ID: the user ID to use for both web and database containers. This should be your host user ID (e.g. id -u) to ensure read&write access on the host.

You can refer to .env-default for a template for your .env file.

First-time installation

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.

Running ProcessWire

Create and run containers for the composition with docker compose up

Handling the database for commits

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.sh script will dump the database into database.sql in the data folder.
  • executing the dbrestore.sh script will restore the database from database.sql in the data folder.

About

Docker installation of ProcessWire for local development

Resources

Stars

Watchers

Forks