From cae09922f370d63c8ccd4411a291e59423fd4757 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 3 Feb 2025 13:48:54 -0500 Subject: [PATCH] home: remove docker Now tracked in server-config. --- home/docker.nix | 72 ------------------------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 home/docker.nix diff --git a/home/docker.nix b/home/docker.nix deleted file mode 100644 index 6c3a5758..00000000 --- a/home/docker.nix +++ /dev/null @@ -1,72 +0,0 @@ -let - inherit (builtins) toJSON; -in -{ - xdg.configFile."docker/compose.yml".text = toJSON { - services = { - umami = { - image = "ghcr.io/umami-software/umami:postgresql-latest"; - container_name = "umami"; - restart = "always"; - - ports = [ - "3000:3000" - ]; - - environment = { - DATABASE_URL = "postgresql://umami:umami@umami-postgres:5432/umami"; - DATABASE_TYPE = "postgresql"; - APP_SECRET = "replace-me-with-a-random-string"; - }; - - depends_on = { - umami-postgres = { - condition = "service_healthy"; - }; - }; - - healthcheck = { - test = [ - "CMD-SHELL" - "curl http://localhost:3000/api/heartbeat" - ]; - - interval = "5s"; - timeout = "5s"; - retries = 5; - }; - }; - - umami-postgres = { - image = "postgres:17-alpine"; - container_name = "umami-postgres"; - restart = "always"; - - environment = { - POSTGRES_DB = "umami"; - POSTGRES_USER = "umami"; - POSTGRES_PASSWORD = "umami"; - }; - - volumes = [ - "umami-postgres:/var/lib/postgresql/data" - ]; - - healthcheck = { - test = [ - "CMD-SHELL" - "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}" - ]; - - interval = "5s"; - timeout = "5s"; - retries = 5; - }; - }; - }; - - volumes = { - umami-postgres = { }; - }; - }; -}