Add nginx image

And probably the db has to be named 'db'?
This commit is contained in:
niten 2023-07-26 09:30:39 -07:00
parent f840b588fb
commit ae7ef5a05b
1 changed files with 7 additions and 1 deletions

View File

@ -109,6 +109,12 @@ in {
description = "Docker image to use for Redis server."; description = "Docker image to use for Redis server.";
default = "redis:7-alpine"; default = "redis:7-alpine";
}; };
nginx = mkOption {
type = str;
description = "Docker image to use for Proxy server.";
default = "nginx:1-alpine";
};
}; };
state-directory = mkOption { state-directory = mkOption {
@ -182,7 +188,7 @@ in {
volumes = [ "${proxyCfg}:/etc/nginx/nginx.conf:ro,Z" ]; volumes = [ "${proxyCfg}:/etc/nginx/nginx.conf:ro,Z" ];
depends_on = [ "web" "streaming" ]; depends_on = [ "web" "streaming" ];
}; };
postgres.service = { db.service = {
image = cfg.images.postgres; image = cfg.images.postgres;
restart = "always"; restart = "always";
volumes = volumes =