name | url |
---|---|
Github | https://github.com/teyc/docker-concrete5 |
Docker Hub | https://hub.docker.com/repository/docker/teyc/concrete5 |
Docker | teyc/docker-concrete5 |
A Concrete5 Docker image that contains PHP, MySQL and nginx preconfigured. Suitable for use as a development environment only.
You can start the image by using bash or Powershell (see below). Then navigate to http://localhost:8080 to install Concrete5.
When prompted, you should set
Database: 127.0.0.1
Database user: c5_user
Database password: c5_password
docker run -it \
-e MYSQL_ROOT_PASSWORD=kHfj3_mp1@ha-agZMNB35AAgw \
-p 8080:80 -p 13306:3306 \
--name c5 teyc/concrete5:temp
docker build . -t teyc/concrete5:8.5.4
docker run -it `
-e MYSQL_ROOT_PASSWORD=kHfj3_mp1@ha-agZMNB35AAgw `
-p 8080:80 -p 13306:3306 `
--name c5 teyc/concrete5:8.5.4
There is a copy of Adminer installed and is accessible on http://localhost:8080/adminer
docker exec -it c5 /bin/sh
/var/www/html # mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
bash
containerId=(docker ps -qaf "name=c5")
docker start --attach $containerId
powershell
$containerId=(docker ps -qaf "name=c5")
docker start "--attach" $containerId
docker build . -t teyc/concrete5:8.5.4
docker image prune
-
Use multistage Docker builds
-
Document how to persist MySQL data
-
Document how to persist downloaded add-ons/packages