added share container

This commit is contained in:
2025-01-05 20:29:37 -05:00
parent 20ed83e80a
commit 0f788a1901
4 changed files with 22 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ frontend ContentSwitching
acl host_grafana hdr(host) -i grafana.tmmworkshop.com
acl host_homeassistant hdr(host) -i homeassistant.tmmworkshop.com
acl host_photoprism hdr(host) -i photoprism.tmmworkshop.com
acl host_share hdr(host) -i share.tmmworkshop.com
acl host_uptime_kuma hdr(host) -i uptimekuma-jeeves.tmmworkshop.com
use_backend audiobookshelf_nodes if host_audiobookshelf
@@ -39,6 +40,7 @@ frontend ContentSwitching
use_backend grafana_nodes if host_grafana
use_backend homeassistant_nodes if host_homeassistant
use_backend photoprism_nodes if host_photoprism
use_backend share_nodes if host_share
use_backend uptime_kuma_nodes if host_uptime_kuma
backend audiobookshelf_nodes
@@ -65,6 +67,10 @@ backend photoprism_nodes
mode http
server server photoprism:2342
backend share_nodes
mode http
server server share:80
backend uptime_kuma_nodes
mode http
server server uptime_kuma:3001

View File

@@ -0,0 +1,14 @@
let
vars = import ../vars.nix;
in
{
virtualisation.oci-containers.containers.share = {
image = "ubuntu/apache2:latest";
volumes = [
"${../../../common/docker_templates}/file_server/sites/:/etc/apache2/sites-enabled/"
"${vars.media_share}:/data"
];
extraOptions = [ "--network=web" ];
autoStart = true;
};
}