Setup mealie container
This commit is contained in:
		
							parent
							
								
									38c63e6ad1
								
							
						
					
					
						commit
						9f886e22d4
					
				
					 2 changed files with 49 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -11,6 +11,7 @@
 | 
			
		|||
    ./radarr.nix
 | 
			
		||||
    ./recyclarr.nix
 | 
			
		||||
    ./sonarr.nix
 | 
			
		||||
    ./mealie.nix
 | 
			
		||||
    ./microbin
 | 
			
		||||
  ];
 | 
			
		||||
  virtualisation.oci-containers.backend = "docker";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										48
									
								
								nixos/viridian/containers/mealie.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								nixos/viridian/containers/mealie.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,48 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
let
 | 
			
		||||
  port = "9925";
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  virtualisation.oci-containers.containers = {
 | 
			
		||||
    mealie = {
 | 
			
		||||
      autoStart = true;
 | 
			
		||||
      image = "ghcr.io/mealie-recipes/mealie:v1.8.0";
 | 
			
		||||
      ports = [
 | 
			
		||||
        "${port}:9000"
 | 
			
		||||
      ];
 | 
			
		||||
      volumes = [
 | 
			
		||||
        "/srv/containers/mealie:/app/data/"
 | 
			
		||||
      ];
 | 
			
		||||
      environment = {
 | 
			
		||||
        ALLOW_SIGNUP = "false";
 | 
			
		||||
        PUID = "1000";
 | 
			
		||||
        PGID = "100";
 | 
			
		||||
        TZ = "Australia/Perth";
 | 
			
		||||
        MAX_WORKERS = "1";
 | 
			
		||||
        WEB_CONCURRENCY = "1";
 | 
			
		||||
        BASE_URL = "https://mealie.kanto.dev";
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services.traefik.dynamicConfigOptions.http.routers = {
 | 
			
		||||
    mealie = {
 | 
			
		||||
     rule = "Host(`mealie.kanto.dev`)";
 | 
			
		||||
      entryPoints = [
 | 
			
		||||
        "websecure"
 | 
			
		||||
      ];
 | 
			
		||||
      middlewares = [
 | 
			
		||||
        "internal"
 | 
			
		||||
      ];
 | 
			
		||||
      service = "mealie";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services.traefik.dynamicConfigOptions.http.services = {
 | 
			
		||||
    mealie.loadBalancer.servers = [
 | 
			
		||||
      { url = "http://127.0.0.1:${port}"; }
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue