feat: add traggo container

This commit is contained in:
Michael Thomas 2024-05-06 21:23:33 -04:00
parent af4e9f6de4
commit 0870c20e4e
2 changed files with 17 additions and 0 deletions

View File

@ -85,6 +85,21 @@
database.passwordFile = config.age.secrets.keycloakDb.path;
};
virtualisation.oci-containers.backend = "podman";
virtualisation.oci-containers.containers.traggo = {
image = "traggo/server:latest";
autoStart = true;
ports = ["127.0.0.1:3030:3030"];
volumes = [
"/var/lib/traggo/data:/opt/traggo/data"
];
environment = {
TRAGGO_DEFAULT_USER_NAME = "michael";
TRAGGO_DEFAULT_USER_PASS = "NfvzH2H5eNJLAJb6";
};
};
swapDevices = [
{
device = "/swapfile";

View File

@ -1,4 +1,6 @@
{pkgs, ...}: {
virtualisation.containers.enable = true;
# Enable Podman w/ docker compose compatibility
virtualisation.podman = {
enable = true;