Docker + Processwire + phpMyAdmin
This image serves as a starting point for Processwire projects.
Get an Processwire application running the fastes way.
$ git clone https://github.com/DataLocalsUG/processwire_docker $ cd processwire_docker $ docker-compose up
Run your existing application
If you want to run your exisisting project you need to pull and configure it before you start the docker container.
1. Pull the current repo
$ git clone https://github.com/DataLocalsUG/processwire_docker $ cd processwire_docker $ mkdir html $ cd html $ git clone <url-of-your-project>
Or you could also just add the repo of your existing project into the
init.shgit clone part instead of the pull from the Processwire repo.
2. Create the database with phpmyadmin
You can simply use phpmyadmin to import your existing database.
http://localhost:8080 to get to phpmyadmin.
3. Configure your application
Now you need to configure your application to use the databases that is running inside docker.
To do so you need to manipulate the credentials of your application normally located under
$config->dbHost = 'db'; $config->dbName = 'name-of-your-database'; $config->dbUser = 'root'; $config->dbPass = 'root'; $config->dbPort = '3306'; $config->dbEngine = 'name-of-your-db-engine';
4. Fire up docker
In the root folder of this application you now can start up docker.
$ docker-compose up
5. Access the application
The application now should be available via