2024-12-21 14:50:33 +00:00
|
|
|
# Docker compose file exemple for latest Dotclear release.
|
|
|
|
# Using docker volumes and 2 containers, one for blog web server and one for the database
|
2024-11-24 12:55:58 +00:00
|
|
|
volumes:
|
|
|
|
dc_app:
|
|
|
|
dc_db:
|
|
|
|
|
|
|
|
services:
|
|
|
|
dc_db:
|
|
|
|
image: mariadb:latest
|
|
|
|
container_name: dotcleardb
|
|
|
|
restart: unless-stopped
|
|
|
|
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
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
|
|
start_period: 10s
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 3
|
|
|
|
|
|
|
|
dc_app:
|
|
|
|
image: jcpd/docker-dotclear:latest
|
|
|
|
container_name: dotclearphp
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- dc_app:/var/www/dotclear
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
depends_on:
|
2024-12-21 14:50:33 +00:00
|
|
|
dc_db:
|
|
|
|
condition: service_healthy
|
2024-11-24 12:55:58 +00:00
|
|
|
environment:
|
|
|
|
DC_DBDRIVER: mysqlimb4
|
|
|
|
DC_DBHOST: dc_db
|
|
|
|
DC_DBNAME: dotclear_db
|
|
|
|
DC_DBUSER: dotclear_user
|
|
|
|
DC_DBPASSWORD: dotclear_pwd
|
|
|
|
DC_DBPREFIX: dc_
|
2024-11-13 08:09:02 +00:00
|
|
|
DC_ADMINMAILFROM: contact@exemple.com
|