mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	- use lookup(template) for redis resource injection - add cpus/mem/pids configs for all Mailu services - switch antivirus to dedicated clamav_db volume - add MAILU_CLAMAV_VOLUME var - cleanup set service_name per service in docker-compose template https://chatgpt.com/share/68d3d69b-06f0-800f-8c4d-4a74471ab961
		
			
				
	
	
		
			102 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			102 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| oidc:
 | |
|   email_by_username:      true                        # If true, then the mail is set by the username. If wrong then the OIDC user email is used
 | |
|   enable_user_creation:   true                        # Users will be created if not existing
 | |
| domain:                   "{{ SYSTEM_EMAIL.DOMAIN }}" # The main domain from which mails will be send \ email suffix behind @                              
 | |
| features:
 | |
|   matomo:                 true
 | |
|   css:                    false
 | |
|   desktop:                true
 | |
|   oidc:                   true
 | |
|   central_database:       true
 | |
|   logout:                 true
 | |
| server:
 | |
|   domains:
 | |
|     canonical:
 | |
|       - "{{ SYSTEM_EMAIL.HOST }}"
 | |
|     aliases: []
 | |
|   csp:
 | |
|     flags:
 | |
|       style-src:
 | |
|         unsafe-inline:        true
 | |
|       script-src-elem:
 | |
|         unsafe-inline:        true
 | |
|       script-src:
 | |
|         unsafe-inline:        true
 | |
|         unsafe-eval:          true
 | |
| rbac:
 | |
|   roles:
 | |
|     mail-bot:
 | |
|       description: "Has an token to send and receive emails"
 | |
| docker:
 | |
|   services:
 | |
|     mailu:
 | |
|       version:            "2024.06"
 | |
|       name:               mailu
 | |
|     redis:
 | |
|       enabled:            true
 | |
|       cpus:               "0.2"
 | |
|       mem_reservation:    "256m"
 | |
|       mem_limit:          "512m"
 | |
|       pids_limit:         256
 | |
|     database:
 | |
|       enabled:            true
 | |
|       cpus:               "0.8"
 | |
|       mem_reservation:    "1g"
 | |
|       mem_limit:          "2g"
 | |
|       pids_limit:         512
 | |
|     admin:
 | |
|       cpus:               "0.3"
 | |
|       mem_reservation:    "512m"
 | |
|       mem_limit:          "1g"
 | |
|       pids_limit:         512
 | |
|     imap:
 | |
|       cpus:               "0.5"
 | |
|       mem_reservation:    "1g"
 | |
|       mem_limit:          "1.5g"
 | |
|       pids_limit:         512
 | |
|     smtp:
 | |
|       cpus:               "0.5"
 | |
|       mem_reservation:    "1g"
 | |
|       mem_limit:          "1.5g"
 | |
|       pids_limit:         512
 | |
|     antispam:
 | |
|       cpus:               "0.6"
 | |
|       mem_reservation:    "1g"
 | |
|       mem_limit:          "1.5g"
 | |
|       pids_limit:         512
 | |
|     antivirus:
 | |
|       cpus:               "0.6"
 | |
|       mem_reservation:    "2g"
 | |
|       mem_limit:          "3g"
 | |
|       pids_limit:         512
 | |
|     oletools:
 | |
|       cpus:               "0.2"
 | |
|       mem_reservation:    "256m"
 | |
|       mem_limit:          "512m"
 | |
|       pids_limit:         256
 | |
|     webdav:
 | |
|       cpus:               "0.2"
 | |
|       mem_reservation:    "256m"
 | |
|       mem_limit:          "512m"
 | |
|       pids_limit:         256
 | |
|     fetchmail:
 | |
|       cpus:               "0.2"
 | |
|       mem_reservation:    "256m"
 | |
|       mem_limit:          "512m"
 | |
|       pids_limit:         256
 | |
|     webmail:
 | |
|       cpus:               "0.3"
 | |
|       mem_reservation:    "512m"
 | |
|       mem_limit:          "1g"
 | |
|       pids_limit:         512
 | |
|     resolver:
 | |
|       cpus:               "0.2"
 | |
|       mem_reservation:    "256m"
 | |
|       mem_limit:          "512m"
 | |
|       pids_limit:         256
 | |
|     front:
 | |
|       cpus:               "0.3"
 | |
|       mem_reservation:    "512m"
 | |
|       mem_limit:          "1g"
 | |
|       pids_limit:         512
 |