Laikmosh Posted November 10, 2022 Share Posted November 10, 2022 ProcessWire Docker Image 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 ProcessWire ProcessWire Repo ProcessWire Documentation 9 Link to comment Share on other sites More sharing options...
hwchew Posted June 6, 2023 Share Posted June 6, 2023 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. Link to comment Share on other sites More sharing options...
zz_james Posted November 10, 2023 Share Posted November 10, 2023 Hi Is this still the most up to date Docker image? Link to comment Share on other sites More sharing options...
netcarver Posted November 10, 2023 Share Posted November 10, 2023 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. Link to comment Share on other sites More sharing options...
poljpocket Posted November 12, 2023 Share Posted November 12, 2023 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) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now