Skip to content
main
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Oct 28, 2017
Mar 1, 2021

README.md

getrector.org Website

Run via docker

docker-compose up

Voilá!

MySQL is published to localhost on port 3307.

Customization

  • Use .env.local to customize environment variables.
  • Use docker-compose.override.yml to customize Docker setup.

To change published MySQL port use:

GETRECTOR_ORG_MYSQL_PORT=33306 docker-compose up

Running 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