Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philippgitpush/processwire-docker-compose
ProcessWire LAMP Server with Docker Compose (PHP, Apache, MySQL, phpMyAdmin)
https://github.com/philippgitpush/processwire-docker-compose
docker docker-compose lamp lamp-stack linux macos mysql php phpmyadmin processwire windows
Last synced: about 2 months ago
JSON representation
ProcessWire LAMP Server with Docker Compose (PHP, Apache, MySQL, phpMyAdmin)
- Host: GitHub
- URL: https://github.com/philippgitpush/processwire-docker-compose
- Owner: philippgitpush
- License: mit
- Created: 2022-09-01T09:17:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T10:30:10.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T05:42:36.164Z (3 months ago)
- Topics: docker, docker-compose, lamp, lamp-stack, linux, macos, mysql, php, phpmyadmin, processwire, windows
- Language: Dockerfile
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ProcessWire Docker Compose
ProcessWire LAMP Server with Docker Compose.Made to quickly set up a test environment for the [ProcessWire CMS](https://github.com/processwire/processwire), but should also be suitable for use in production. This includes all the libraries and php extensions that ProcessWire needs to work properly.
If you develop on Windows and go into production on Linux, the case of the database tables will not match. You need to export the database from Windows via phpmyadmin and then import it on the production machine and vice versa.
You **must** bind the mysql port to 127.0.0.1 (Windows) or 172.17.0.1 (Linux / OSX) if you are working in production, otherwise the port will be accessible to the public with a weak password. The commented out bindings can be found in the `docker-compose.yml` file. The database is accessible either via `host.docker.internal` on Windows or via `172.17.0.1` on Linux / OSX. Also, make sure that you **do not** expose the phpmyadmin port `8080` when you go into production.
For this, you need to download the [latest version or dev build](https://processwire.com/download/core/) of ProcessWire and unzip it into the `html` folder created by docker-compose.
## Services
- `php:8.1-apache`
- Ports
- 80:80
- `mysql:latest`
- Ports
- 3306:3306
- Environment
- MYSQL_ROOT_PASSWORD=docker
- MYSQL_PASSWORD=docker
- MYSQL_USER=docker
- MYSQL_DATABASE=docker
- `phpmyadmin/phpmyadmin:latest`
- Ports
- 8080:80
- Environment
- PMA_ARBITRARY=1
- PMA_HOST=mysql