Geerodge / processwire-starter-nginx

Starter for ProcessWire with PHP 7.4-fpm and NGINX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker for ProcessWire

Running all the required php extensions for ProcessWire and also the following:

  • PHP 7.4-fpm
  • NGINX
  • ImageMagick

Installation

Clone the ProcessWire repository.

git clone https://github.com/processwire/processwire.git app/public

Now run docker compose command and you are good to go.

docker-compose up

The docker container where ProcessWire is installed can be accessed via 127.0.0.1, visit this I.P. in your browser to start the ProcessWire installation.

Information about the mysql connection can be found in docker-compose.yml.

I run this all in vscode with the Docker Remote extension. View all my extensions here.

Important Notes - Do Not Skip

  • When starting the docker container for the first time the mysql settings (database name, user, pass) from docker-compose.yml will be loaded and are annoyingly persistent. Remember to use the command "docker-compose down -v" in terminal, even after closing in vscode when changing these and not being able to connect.

  • When connecting to database from within the container, do not use localhost or 127.0.0.1. Use mysql (the service name), especially useful on the /install.php script for processwire.

About

Starter for ProcessWire with PHP 7.4-fpm and NGINX

License:MIT License


Languages

Language:Dockerfile 100.0%