Make sure you have Docker installed.
PHP version of this branch: 8.0
How-To:
- Change the
WEB_ROOT
in the.env
file to the root of your website (the folder that youindex.html
orindex.php
is in)- Note: If you do not yet have a project, skip this step for now.
- Run
docker-compose -f 'path/to/your/docker-compose.yml' up -d
and wait for it to exit. - Open http://localhost to check whether your setup works.
To shut down the server, use
docker-compose -f 'path/to/your/docker-compose.yml' down -remove-orphans
.
You can set up multiple projects in two ways:
- Create a second
.env
file (name itsecond-project.env
or something), and change theWEB_ROOT
to fit your second project. - When starting your project, append
--env-file 'path/to/your/second-project.env'
to thedocker-compose
command.- For example:
docker-compose -f 'path/to/your/docker-compose.yml' --env-file 'path/to/your/second-project.env' up -d
- For example:
- Clone a second instance of this repository and adjust settings accordingly.
- When starting your second project, just specify the
docker-compose.yml
of the second clone.