From ae7ef5a05b77ff14cb8a7e949f4f9705e16d4868 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 26 Jul 2023 09:30:39 -0700 Subject: [PATCH] Add nginx image And probably the db has to be named 'db'? --- mastodon-container.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index b84ab97..f7694bb 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -109,6 +109,12 @@ in { description = "Docker image to use for Redis server."; default = "redis:7-alpine"; }; + + nginx = mkOption { + type = str; + description = "Docker image to use for Proxy server."; + default = "nginx:1-alpine"; + }; }; state-directory = mkOption { @@ -182,7 +188,7 @@ in { volumes = [ "${proxyCfg}:/etc/nginx/nginx.conf:ro,Z" ]; depends_on = [ "web" "streaming" ]; }; - postgres.service = { + db.service = { image = cfg.images.postgres; restart = "always"; volumes =