docker-dotclear/README.md

124 lines
4.5 KiB
Markdown
Raw Normal View History

2024-10-30 18:55:02 +00:00
# README
## WHAT IS DOTCLEAR
Dotclear is an open-source web publishing software.
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.
2024-10-31 17:26:51 +00:00
=> https://dotclear.org/
2024-10-30 18:55:02 +00:00
## WHAT IS DOCKER-DOTCLEAR
This repository contains all features to build or run Dotclear on a Docker environment.
2024-10-31 17:26:51 +00:00
It is hightly based on work from [darknao](https://github.com/darknao/docker-dotclear).
2024-10-31 20:47:23 +00:00
* Dotclear docker images are avaialable at [Docker hub](https://hub.docker.com/r/jcpd/docker-dotclear)
* Dotclear docker sources are avaialable at [Github repository](https://github.com/JcDenis/docker-dotclear)
2024-10-31 17:26:51 +00:00
2024-11-02 13:55:02 +00:00
__Important notes:__
As of today, current images structure change on every release,
do not use these images in production environment.
One of possible breaking change in futur could be the support of multi-blogs
with changed in docker volumes and system path.
2024-10-31 17:26:51 +00:00
### TAGS
dotclear_version-server_type
2024-11-02 13:47:50 +00:00
* jcpd/docker-dotclear:latest is base on stable Alpine / Nginx / PHP-FPM
2024-10-31 20:47:23 +00:00
* jcpd/docker-dotclear:x.xx-dnf is based on stable Debian / Nginx / PHP-FPM
* jcpd/docker-dotclear:x.xx-anf is based on stable Alpine / Nginx / PHP-FPM
2024-10-31 17:26:51 +00:00
* ... (next to come)
2024-11-02 13:47:50 +00:00
### DOCKER
2024-10-31 17:26:51 +00:00
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:
2024-10-31 17:44:27 +00:00
- dc_app:/var/www/html
2024-10-31 17:26:51 +00:00
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
2024-10-31 20:47:23 +00:00
docker-compose up -d
2024-10-31 17:26:51 +00:00
Dotclear is now available on your server host at http://locahost:8080/
2024-10-30 18:55:02 +00:00
2024-10-31 20:47:23 +00:00
Before Dotclear 2.32, on first run, Dotclear does installation process, you must provide values of :
2024-10-31 17:26:51 +00:00
* 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
2024-10-31 17:31:00 +00:00
2024-10-31 17:54:36 +00:00
Builds should support postgresql and mysql database.
2024-10-31 17:26:51 +00:00
On first run you should wait that container download ans install required version of Dotclear...
2024-10-30 18:55:02 +00:00
2024-11-02 13:47:50 +00:00
### BLOG
These images support Dotclear URL rewriting in PATH INFO mode.
To configure default blog, go to the administration interface at http://localhost/admin,
* left side menu _Blog settings_
* panel _Advanced parameters_
* set _Blog URL_ to http://localhost/ (with trailing slash)
* set _URL scan method_ to 'PATH_INFO'
### TODO
2024-10-31 17:54:36 +00:00
* Disable upgrade from Dotclear. Should only use upgrade from container restart ?
2024-10-31 20:47:23 +00:00
* or Fix downgrade on container restart when Dotclear has been upgraded from UI.
2024-10-31 17:54:36 +00:00
* Use auto installation from container environment variables.
* Add support of Dotclear's DEBUG mode for Dotclear and logs.
* Add better cache management. From another container or from Dotclear container.
2024-10-31 20:47:23 +00:00
* Add mail support.
2024-10-31 17:54:36 +00:00
* Enhance server and php configuration. From x.conf files.
* Add builds from Alpine and Apache and maybe without FPM.
2024-11-02 13:47:50 +00:00
### CONTRIBUTING
2024-10-30 18:55:02 +00:00
This image is an open source project. If you'd like to contribute, please read the [CONTRIBUTING file](/CONTRIBUTING.md).
You can submit a pull request, or feel free to use any other way you'd prefer.
2024-11-02 13:47:50 +00:00
### LICENSE
2024-10-30 18:55:02 +00:00
Copyright Jean-Christian Paul Denis
AGPL-v3 <https://www.gnu.org/licenses/agpl-3.0.html>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Dotclear software is licensed under AGPL-3, Copyright Olivier Meunier & Association Dotclear