mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Get Tandoor and Wallabag working in Docker Compose
Podman compose kept crashing, switching back to Docker without any other changes fixed things... :(
This commit is contained in:
parent
cb6b77b813
commit
bf76a1dbc3
2 changed files with 19 additions and 7 deletions
|
|
@ -136,14 +136,14 @@ in {
|
|||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://${mini_watcher}:8090";
|
||||
locations."/".proxyPass = "http://${backend_ip}:8090";
|
||||
};
|
||||
"tandoor.${home_domain}" = {
|
||||
listen = [{ port = https_port; addr = "0.0.0.0"; ssl = true; }];
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://${mini_watcher}:8080";
|
||||
locations."/".proxyPass = "http://${backend_ip}:8080";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
compose2nix.packages.${pkgs.system}.default
|
||||
docker-compose
|
||||
intel-gpu-tools
|
||||
jellyfin
|
||||
jellyfin-ffmpeg
|
||||
|
|
@ -47,7 +48,13 @@
|
|||
|
||||
networking = {
|
||||
# Open ports in the firewall.
|
||||
firewall.allowedTCPPorts = [ 22 80 13378 ];
|
||||
firewall.allowedTCPPorts = [
|
||||
22 # ssh
|
||||
80 # http to local Nginx
|
||||
8080 # Tandoor in podman compose
|
||||
8090 # Wallabag in podman compose
|
||||
13378 # Audiobookshelf in oci-container
|
||||
];
|
||||
# firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# firewall.enable = false;
|
||||
|
|
@ -139,7 +146,8 @@
|
|||
restic.backups.daily.paths = [
|
||||
"/orico/jellyfin/data"
|
||||
"/orico/jellyfin/staging/downloaded-files"
|
||||
#"${config.users.users.${username}.home}/compose-files/tandoor"
|
||||
"${config.users.users.${username}.home}/compose-files/tandoor"
|
||||
"${config.users.users.${username}.home}/compose-files/wallabag"
|
||||
];
|
||||
tailscale = {
|
||||
enable = true;
|
||||
|
|
@ -176,7 +184,7 @@
|
|||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = "Gene Liverman";
|
||||
extraGroups = [ "podman" "networkmanager" "wheel" ];
|
||||
extraGroups = [ "docker" "podman" "networkmanager" "wheel" ];
|
||||
};
|
||||
|
||||
# Enable common container config files in /etc/containers
|
||||
|
|
@ -184,12 +192,16 @@
|
|||
|
||||
virtualisation.oci-containers.backend = "podman";
|
||||
|
||||
# Compose based apps were crashing with podman compose, so back to Docker...
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
autoPrune.enable = true;
|
||||
#dockerCompat = true;
|
||||
extraPackages = [ pkgs.zfs ]; # Required if the host is running ZFS
|
||||
|
||||
# Required for containers under podman-compose to be able to talk to each other.
|
||||
# Required for container networking to be able to use names.
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue