getrector.org Website
Run via docker
docker-compose upVoilá!
- Web: localhost:8080
- Adminer: localhost:8081 (host:
mysql, user:root, pass:root) - Mailhog: localhost:8025
MySQL is published to localhost on port 3307.
Customization
- Use
.env.localto customize environment variables. - Use
docker-compose.override.ymlto customize Docker setup.
To change published MySQL port use:
GETRECTOR_ORG_MYSQL_PORT=33306 docker-compose upRunning with Xdebug
If you want to use xdebug, here is example docker-compose.override.yml that will enable xdebug (do not forget to change ip address):
version: "3.7"
services:
web:
build:
context: .
target: xdebug
dockerfile: Dockerfile
environment:
XDEBUG_CONFIG: "client_host=172.16.165.1"
PHP_IDE_CONFIG: "serverName=getrector_org"
Then re-build your image so it contains xdebug extension:
docker-compose down
docker-compose up --build
Troubleshooting
Sometimes, you might have outdated Docker images locally, to update, please run:
bin/pull-docker-images.sh