You will need to get Docker (https://www.docker.com/products/docker-desktop) either Docker CE for Windows/Mac or Docker Toolbox for Windows (https://docs.docker.com/toolbox/toolbox_install_windows/) or Mac (https://docs.docker.com/toolbox/toolbox_install_mac/).
If you plan to run VirtualBox and Docker you will need to install the Docker Toolbox, Docker CE requires Hyper-V to be enable which isn't compatible with VirtualBox.
**CAUTION!** This Docker box is meant for local development only. This set up is not hardened and is not secure, so
**CAUTION!** This Docker box is meant for local development only. This set up is not hardened and is not secure, so
only us it as a local development environment.
only us it as a local development environment.
First we need to build the images:
If you are using Docker Toolbox, on a Windows machine start Docker Quickstart Terminal.
From the command line, run:
```bash
docker-machine ip
```
It will return the IP address of the Docker machine, you will need to add the Docker machine IP to your ```host``` file.
First we need to build the images,(this takes about 12 minutes or so):
```bash
docker-compose build
```
```
Once that's done you can create the containers, running with -d runs them in detached mode:
Once that's done you can create the containers, running with -d runs them in detached mode:
...
@@ -19,6 +40,11 @@ To check that all the boxes are running:
...
@@ -19,6 +40,11 @@ To check that all the boxes are running:
```bash
```bash
docker-compose ps
docker-compose ps
```
```
If all containers say up, you are good to proceed to the next step.
Next we will need to run the profile rebuild for either our Drupal 7 or Drupal 8 container:
in the URL: http://docker:9000
Portainer can be accessed at port :9000 you can use Portainer to easily log in to the web container to run the profile rebuild the base profile or run composer etc...
Portainer can be accessed at port :9000 you can use Portainer to easily log in to the web container to run the profile rebuild the base profile or run composer etc...