F3 development bench
This is a dockerized environment for testing and developing things on the fatfree-core.
It uses Docker to spin up multiple containers, so the framework can be used using multiple services and different versions of them at the same time.
Currently included:
- Apache 2.4
- Memcached
- Redis
- MySQL 5.7
- PHP-FPM 5.6
- PHP-FPM 7.2
- PHP-FPM 7.3
- PHP-FPM 7.4
- PHP-FPM 8.0
- PHP-FPM 8.1
The services are bind to your local machine network using Traefik. That way you'll have nice domain names for each php version with zero further configuration. Also included is ready to use XDebug.
Usage
- First install docker.
- Copy
sample.env
to.env
and adjust the ports to your local machine, if you already have something running at the default ports. - Run
docker-compose build
to build the containers. This might take a round 20min, depending on your hardware. - Run
docker-compose up -d
to start the dev bench - Open your browser with the desired version to run:
TODO
- add nginx configuration to reuse existing php-fpm servers
- add mailhog for smtp testing
Legal notice
This development environment belongs to the f3-factory community and is not meant for usage on a production system. No warranty for any security issues in case you put this on your public root.
Copyright (c) 2022 F3::Factory