WCMS Docker setup
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.
First we need to build the images:
docker-compose build --no-cache
Once that's done you can create the containers, running with -d runs them in detached mode:
docker-compose up -d
To check that all the boxes are running:
docker-compose ps
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...
If you get an error running docker-compose related to wincred
go to ~/.docker/config.json
and remove the "credstore":"wincred"
but leave the curly braces {}
and save the file.
To check the ip address of your docker machine:
docker-machine ip default
On Windows, if you get the error:
un\\\\docker.sock:/var/run/docker.sock"\nis not a valid Windows path'
ERROR: for portainer Cannot create container for service portainer: b'Mount denied:\nThe source path "\\\\var\\\\run\\\\docker.sock:/var/run/docker.sock"\nis not a valid Windows path'
Encountered errors while bringing up the project.
You will need to use Windows Powershell (as Admin) and enter:
$Env:COMPOSE_CONVERT_WINDOWS_PATHS=1