Concrete CMS on Alpine Linux + Apache + PHP8.3
643
This image sets up a development environment and relies on Alpine, Apache 2 and PHP8.3.
Docker images for Concrete CMS was designed as an extendable platform for building beautiful websites clients love to manage on their own. The core has lots of built-in features, so you’re not forced to use an ecosystem of incompatible extensions.(https://www.concretecms.org/).
Concrete CMS requires a MySQL DB as backend. You can launch a dockerized one with the following command (change passwords accordingly):
$ docker run --detach --name cmsmariadb --env MARIADB_USER=db user --env MARIADB_PASSWORD=db password --env MARIADB_DATABASE=db name --env MARIADB_ROOT_PASSWORD=db root password mariadb:latestThis will start a Concrete CMS instance listening on port 80:
$ docker run -d -p 80:80 --name concretecms --link cmsmariadb nandogva/concrete-cms:latestIf you'd like persistance, you can create a volume:
$ docker volume create mariadb$ docker volume create concretecms$ docker run --detach --name cmsmariadb --env MARIADB_USER=username --env MARIADB_PASSWORD=db password --env MARIADB_DATABASE=database_name --env MARIADB_ROOT_PASSWORD=root password -v mariadb:/var/lib/mysql mariadb:latest$ docker run -d -p 80:80 --name concretecms --link cmsmariadb -v concretecms:/var/www/localhost/htdocs nandogva/concrete-cms:latestThe easiest way to get a fully featured and functional setup is using a docker-compose file, so here is an example.
volumes:
concrete:
db:
services:
db:
image: mariadb:latest
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=rootpass
- MYSQL_PASSWORD=dbpass
- MYSQL_DATABASE=dbname
- MYSQL_USER=dbuser
app:
image: nandogva/concrete-cms:latest
restart: unless-stopped
ports:
- 80:80
links:
- db
volumes:
- concrete:/var/www/localhost/htdocs
environment:
- MYSQL_HOST=db
Once the container is running for the first time, navigate to http://server-IP/ to be redirected to the install scripts.
Content type
Image
Digest
sha256:f1dc9f7d2…
Size
96.3 MB
Last updated
over 1 year ago
docker pull nandogva/concrete-cms