diff --git a/README.md b/README.md index 9d375c6..ec1d7e2 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,70 @@ Take control over your blog! Dotclear project's purpose is to provide a user-friendly tool allowing anyone to publish on the web, regardless of their technical skills. +=> https://dotclear.org/ + ## WHAT IS DOCKER-DOTCLEAR This repository contains all features to build or run Dotclear on a Docker environment. +It is hightly based on work from [darknao](https://github.com/darknao/docker-dotclear). -... +Dotclear docker images are avaialable at [Docker hub](https://hub.docker.com/r/jcpd/docker-dotclear) + +### TAGS + +dotclear_version-server_type + +* jcpd/docker-dotclear:latest is base on Debian / Nginx / PHP-FPM +* jcpd/docker-dotclear:dnf is based on Debian / Nginx / PHP-FPM +* ... (next to come) + +Exemple of a docker compose file with a mariadb database. + + services: + + # MYSQL database service + dc_db: + image: mariadb:latest + container_name: dotcleardb + restart: always + command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW + volumes: + - dc_db:/var/lib/mysql + environment: + MYSQL_ROOT_PASSWORD: dotclear_root + MYSQL_DATABASE: dotclear_db + MYSQL_USER: dotclear_user + MYSQL_PASSWORD: dotclear_pwd + + # PHP-FPM Service + dc_app: + image: jcpd/docker-dotclear:latest + container_name: dotclearphp + volumes: + - dc__app:/var/www/html + ports: + - 8080:80 + depends_on: + - dc_db # MYSQL database service + + volumes: + dc_app: # NGINX volume + dc_db: # MYSQL volume + +* You must replace database USER and PASSWORD by something else. + +Then execute + + docker-compuse up -d + +Dotclear is now available on your server host at http://locahost:8080/ + +Before Dotclear 2.32, on first run, Dotclear does installation process, you must provide : +* MySQl database container service name as database host (here dc_db) +* MYSQL_DATABASE as database name +* MYSQL_USER as database login +* MYSQL_PASSWORD as database password +On first run you should wait that container download ans install required version of Dotclear... ## CONTRIBUTING