publiccms is a open source content manage system!
9.2K
Public CMS https://www.publiccms.com/
Simple command line:
docker run --name=publiccms sanluan/publiccms
Full command line:
docker run --name=publiccms -d -e "PORT=8080" -e "CONTEXTPATH=/publiccms" -e "FILEPATH=/data/publiccms" -p 8080:8080 -v /data/publiccms:/data/publiccms sanluan/publiccms:latest
Environment variable
PORT: CMS service listening port
INITPROTO: Initialize the protocol header and real IP; if false, get it from the reverse proxy, if true, it’s initialized by the container
CONTEXTPATH: CMS context path,"CONTEXTPATH=" to start on /
FILEPATH: CMS data file path
docker-compose.yml
version: "3.9"
services:
publiccms:
image: sanluan/publiccms:latest
container_name: publiccms
ports:
- "8080:8080"
volumes:
- ./data/publiccms:/data/publiccms #website file
- ./data/log/:/var/log/ #log file
environment:
- TZ=Asia/Shanghai
depends_on:
- "mysql"
mysql:
image: mysql:latest
container_name: mysql-cms
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
#restart: always
ports:
- "3306:3306"
volumes:
- ./data/mysql:/var/lib/mysql #data file
- ./data/mysql-config:/etc/mysql/conf.d #config file
- ./data/log:/var/log/mysql #log file
environment:
- TZ=Asia/Shanghai
- MYSQL_ROOT_PASSWORD=password!@#
- MYSQL_DATABASE=publiccms
- MYSQL_USER=publiccms
- MYSQL_PASSWORD=password!@#
nginx:
image: nginx:stable
container_name: nginx-cms
ports:
- "80:80"
volumes:
- ./data/nginx-config:/etc/nginx/conf.d #config file
- ./data/publiccms:/data/publiccms #website file
- ./data/log:/var/log/nginx #log file
environment:
- TZ=Asia/Shanghai
visit : http://localhost/ or http://localhost:8080/ input the mysql config host/port : mysql-cms/3306 ; user/password : publiccms/password!@#
Content type
Image
Digest
sha256:8586ce021…
Size
377.9 MB
Last updated
about 1 month ago
docker pull sanluan/publiccms