CMS Made Simple on Linux + Apache + PHP8.3
378
Docker images for CMS Made Simple, an Open Source Content Management System built using PHP and the Smarty Engine, which keeps content, functionality, and templates separated (CMS Made Simple).
This image sets up a development environment and relies on Alpine, Apache 2 and PHP8.3.
CMS Made Simple 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 CMS Made Simple instance listening on port 80:
$ docker run -d -p 80:80 --name cmsms --link cmsmariadb nandogva/cmsmsmadesimple:latestIf you'd like persistance, you can create a volume:
$ docker volume create mariadb$ docker volume create cmsms$ 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 cmsms --link cmsmariadb -v cmsms:/var/www/localhost/htdocs nandogva/cmsmsmadesimple:latestThe easiest way to get a fully featured and functional setup is using a docker-compose file, so here is an example.
version: '3.5'
volumes:
cmsms:
db:
services:
db:
image: mariadb:latest
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_PASSWORD=
- MYSQL_DATABASE=
- MYSQL_USER=
app:
image: nandogva/cmsmsmadesimple:latest
restart: always
ports:
- 80:80
links:
- db
volumes:
- cmsms:/var/www/html
environment:
- MYSQL_HOST=db
Once the container is running for the first time, navigate to http://server-IP/cmsms-2.2.21-install.php to be redirected to the upgrade and install scripts.
Content type
Image
Digest
sha256:7c53d6a00…
Size
31.8 MB
Last updated
over 1 year ago
docker pull nandogva/cmsmadesimple