Changed database to mariadb

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-28 17:24:45 +01:00
parent eabd5002fa
commit d04c205a6b
2 changed files with 17 additions and 6 deletions

View File

@ -1,7 +1,3 @@
# This file is auto-generated by the Mailu configuration wizard.
# Please read the documentation before attempting any change.
# Generated for compose flavor
version: '2.2' version: '2.2'
services: services:
@ -12,6 +8,16 @@ services:
restart: always restart: always
volumes: volumes:
- "/mailu/redis:/data" - "/mailu/redis:/data"
database:
image: mariadb
restart: always
environment:
MYSQL_DATABASE: "mailu"
MYSQL_USER: "mailu"
MYSQL_PASSWORD: "{{mailu_database_password}}"
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes:
- database:/var/lib/mysql
# Core services # Core services
front: front:
@ -103,7 +109,8 @@ services:
- "/mailu/webmail:/data" - "/mailu/webmail:/data"
depends_on: depends_on:
- imap - imap
volumes:
database:
networks: networks:
default: default:
driver: bridge driver: bridge

View File

@ -139,4 +139,8 @@ LOG_LEVEL=WARNING
################################### ###################################
# Database settings # Database settings
################################### ###################################
DB_FLAVOR=sqlite DB_FLAVOR=mysql
DB_USER=mailu
DB_PW={{mailu_database_password}}
DB_HOST=database:3306
DB_NAME=mailu