Ray Kootstra Ray Kootstra - 3 months ago
676 0

No description

Markdown

README.md

## Launch in docker
Launch the ```Docker Quickstart Terminal``` and go to the project directory:

```
cd website
```

Startup the docker environment:

```
docker-compose --project-name myproject up -d
```

This will launch a mysql instance and a PHP/Apache instance


To stop the docker environment run

```
docker-compose --project-name myproject down
```
but this will stop and remove the container.
An other alternative is to stop the container and preserve the container is
```
docker-compose stop
```
To start the container just use
```
docker-compose start
```

## Setup the site from within docker

Enter the docker PHP/Apache setup...
 
```
docker exec -t -i -u www-data myproject_php-apache_1 /bin/bash
```

... and run the shell script to setup the project.

If the composer install fails on a password during the install of the routable-entity-bundle, then exit the docker container and run composer install locally. After success you can restart the reload_project.sh within the docker container.

```
cd /var/www
bash shell-tools/reload_project.sh
```

By default the site will be available on ```http://192.168.99.100/app_dev.php```