Creates a Docker container for demoing Roomify for Accommodations.
The image contains the following -
- PHP 7.0 + Apache
- Composer
- Drush 8
- Roomify for Accommodations
The image must be linked with a database container (e.g. mysql).
- Ensure you have Docker and Docker compose installed. See https://docs.docker.com/compose/install/ to get started.
- Build the Dockerfile:
git clone https://github.com/Roomify/rfa-docker.git
cd rfa-docker
docker-compose build
- Run the Docker image
docker-compose up
This should bring up 2 containers, 1 Drupal RfA/PHP/Apache and a second MySQL container. Both containers should be linked and the Roomify for Accommodations database will be installed on startup. Once both containers are up, visit http://localhost:8001/ - you may use the credentials admin/admin to login.
docker run --rm --name rfa --link db:mysql Roomify/rfa-docker:latest
...where db:mysql matches the name and alias of your DB instance. The values from your linked DB instance will be used to complete the setup.
Once the container is up browse to port 80 on the container to view the site.