Jump to content

Recommended Posts

Posted

ProcessWire Docker Image

Go to Docker Hub Go to Git Hub

Dockerized Processwire installation and development enviroment

  • Local enviroment with MariaDB container included
  • Mount local filesystem
  • Processwire versions
  • VSCode Itelliphense configuration
  • xDebug preconfigured
  • Opcache + JIT ready (xDebug must be disabled)

Installation & usage

Development enviroment installation

Build using local script

$ git clone https://github.com/laikmosh/docker-processwire.git
$ cd docker-processwire
$ docker-compose up

Install as usual, no extra configuration is needed.

There is a config-dev.php file in the ./site/ folder, this file will load by default when running locally, but is in the .dockerignore, so it wont be included at image building time.

Custom php.ini settings can be set at:

/Processwire/scripts/php/php.ini

*Image must be rebuilt for changes on php.ini to take effect


Development enviroment usage

By default the ProcessWire installer will load the `.env` configuration.
Configure .env file for project and DB settings, default database credentials are:

Database: {COMPOSE_PROJECT_NAME}
User: admin
Password: password
Server: database
Port: 3306

Editable files and templates will be installed to the ./site/ folder.

Processwire documentation

  • Like 9
  • Laikmosh changed the title to ProcessWire Docker Image
  • 6 months later...
Posted

Thank you for the Docker image.

During ProcessWire install, I am getting errors "Database connection information did not work" and "SQLSTATE[HY000] [2002] No such file or directory".

How should I resolve this?

Thanks in advance.

  • 5 months later...
Posted

Hi @zz_james, welcome to the forum.

There are quite a few PW-related docker images - you can find a list of them here. I do not know which one represents the latest - but it's a reasonable starting point for your search.

Posted

You can use my composition as a starting point. It has a configurable ProcessWire version (must be a tagged one on GitHub) and supports DB dumps for complete version control.

Be advised this is intended for local development and NOT for production! You should be able to add SSL and some more hardening to make it production-ready though (for sure remove the phpmyadmin container!).

poljpocket/processwire-docker: Docker installation of ProcessWire for local development (github.com)

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...