aboutsummaryrefslogtreecommitdiff
path: root/hosts/herra/arion-compose.nix
blob: daa40778d3eb1ca1104443dbcf74d57f91f4d0cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{pkgs, ...}: {
  project.name = "odysseus";

  services.odysseus.service = {
    image = "ghcr.io/pewdiepie-archdaemon/odysseus:latest";

    ports = [
      "7000:7000"
    ];

    volumes = [
      "/srv/odysseus/data:/app/data"
    ];

    environment = {
      AUTH_ENABLED = "true";

      LLM_HOST = "host.docker.internal:11434";

      CHROMADB_HOST = "chromadb";

      SEARXNG_INSTANCE = "http://searxng:8080";
    };

    extra_hosts = [
      "host.docker.internal:host-gateway"
    ];

    depends_on = [
      "chromadb"
      "searxng"
    ];
  };

  services.chromadb.service = {
    image = "chromadb/chroma:latest";

    volumes = [
      "/srv/odysseus/chroma:/chroma/chroma"
    ];
  };

  services.searxng.service = {
    image = "searxng/searxng:latest";
  };

  services.ntfy.service = {
    image = "binwiederhier/ntfy:latest";
  };
}