docker-dotclear/docker-compose.yaml

41 lines
No EOL
1.3 KiB
YAML

services:
# MYSQL database service
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
# Dotclear server service
dc_app:
image: jcpd/docker-dotclear:latest
container_name: dotclearphp
restart: unless-stopped
volumes:
#- dc_app:/var/www/dotclear # docker volume or
- ./dotclear:/var/www/dotclear # system path
ports:
- 80:80
depends_on:
- dc_db # MYSQL database service
environment:
# These variables are only used for first install, see inc/config.php
DC_DBDRIVER: mysqlimb4 # MYSQL full UTF-8
DC_DBHOST: dc_db # MYSQL database service
DC_DBNAME: dotclear_db # MYSQL_DATABASE
DC_DBUSER: dotclear_user # MYSQL_USER
DC_DBPASSWORD: dotclear_pwd # MYSQL_PASSWORD
DC_DBPREFIX: dc_ # Database tables prefix
DC_ADMINMAILFROM: contact@exemple.com # Dotclear mail from
volumes:
# dc_app: # Dotclear volume
dc_db: # MYSQL volume