mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Compute per-container CPU/RAM shares based on active services (web-/svc-*, enabled=true or undefined). Cast host facts to numbers, add safe min=1, and output compose-ready values. Include robust unit test. Also: include resource.yml.j2 in base template and minor formatting tidy-up. https://chatgpt.com/share/68d2d96c-9bf4-800f-bbec-d4f2c0051c06
		
			
				
	
	
		
			48 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
| credentials: {}
 | |
| docker:
 | |
|   services:
 | |
|     redis:
 | |
|       enabled:          false   # Enable Redis 
 | |
|     database:
 | |
|       enabled:          false   # Enable the database
 | |
|     {{ application_id | get_entity_name }}:  
 | |
|       backup:
 | |
|         no_stop_required: true  # The images that don't need to stop
 | |
|         disabled:         true  # Disables the image
 | |
|         database_routine: true  # Instead of copying a database routine will be triggered for this container
 | |
|       image:            ""                                            # The docker image of the software you want to use
 | |
|       version:          "latest"                                      # The docker version of the software you want to use
 | |
|       container:        "{{ application_id | get_entity_name }}"      # The container name
 | |
|     volumes:
 | |
|       data:             "{{ application_id | get_entity_name }}_data"
 | |
| features:
 | |
|   matomo:           true    # Enable Matomo Tracking
 | |
|   css:              true    # Enable Global CSS Styling
 | |
|   desktop:          true    # Enable loading of app in iframe
 | |
|   ldap:             false   # Enable LDAP Network
 | |
|   central_database: false   # Enable Central Database Network
 | |
|   recaptcha:        false   # Enable ReCaptcha
 | |
|   oauth2:           false   # Enable the OAuth2-Proy
 | |
|   javascript:       false   # Enable the custom JS in the javascript.js.j2 file  
 | |
|   logout:           true    # Enable the logout via the central logout mechanism (deleting all cookies)  
 | |
| server:
 | |
|   csp:
 | |
|     whitelist:                # URL's which should be whitelisted           
 | |
|       script-src-elem:  []
 | |
|       style-src:        []
 | |
|       font-src:         []
 | |
|       connect-src:      []
 | |
|       frame-src:        []
 | |
|     flags:                    # Flags which should be set
 | |
|       style-src:
 | |
|         unsafe-inline:  false
 | |
|       script-src:
 | |
|         unsafe-inline:  false
 | |
|       script-src-elem:
 | |
|         unsafe-inline:  false
 | |
|   domains:
 | |
|     canonical:        {}      # Urls under which the domain should be directly accessible
 | |
|     aliases:          []      # Alias redirections to the first element of the canonical domains
 | |
| rbac:
 | |
|   roles: {}
 |