From 7385ec4edbd726d20c96bdd8cfcfa6202e8246d9 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Wed, 19 Oct 2022 19:07:02 +0000 Subject: [PATCH] ADD appsmith docker service --- docker/appsmith.nix | 20 ++++++++++++++++++++ docker/whoogle.nix | 6 +++--- hosts/web/configuration.nix | 2 ++ 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 docker/appsmith.nix diff --git a/docker/appsmith.nix b/docker/appsmith.nix new file mode 100644 index 0000000..077dc10 --- /dev/null +++ b/docker/appsmith.nix @@ -0,0 +1,20 @@ +{ config, pkgs, ... }: +let + host = "search.atlanticaweb.fr"; +in +{ + virtualisation = { + podman = { + enable = true; + dockerCompat = true; + }; + oci-containers = { + backend = "podman"; + containers.appsmith-ce = { + image = "appsmith/appsmith-ce"; + autoStart = true; + ports = [ "5002:80" ]; #server locahost : docker localhost + }; + }; + }; +} diff --git a/docker/whoogle.nix b/docker/whoogle.nix index f00e9b4..86a224f 100644 --- a/docker/whoogle.nix +++ b/docker/whoogle.nix @@ -1,6 +1,6 @@ { config, pkgs, ... }: let - host = "atlanticaweb.fr"; + host = "search.atlanticaweb.fr"; in { virtualisation = { @@ -8,12 +8,12 @@ in enable = true; dockerCompat = true; }; - whoogle = { + oci-containers = { backend = "podman"; containers.whoogle-search = { image = "benbusby/whoogle-search"; autoStart = true; - ports = [ "5000:5000" ]; #server locahost : docker localhost + ports = [ "5001:5000" ]; #server locahost : docker localhost }; }; }; diff --git a/hosts/web/configuration.nix b/hosts/web/configuration.nix index d9b9bd0..007c0d1 100644 --- a/hosts/web/configuration.nix +++ b/hosts/web/configuration.nix @@ -7,6 +7,8 @@ ../modules/prometheus-node.nix ../modules/common.nix ../modules/users.nix + ../docker/whoogle.nix + ../docker/appsmith.nix ]; system.stateVersion = "21.11";