add redis and go-vod containers

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-08-15 23:39:19 -04:00
parent f7023098ec
commit 89243d3374
3 changed files with 80 additions and 56 deletions

View File

@ -15,10 +15,6 @@
virtualisation.oci-containers.backend = "docker";
virtualisation.docker.daemon.settings.data-root = "/var/lib/docker2";
# "nextcloud-go-vod-1 radialapps/go-vod"
# "nextcloud-nextcloud-1 nextcloud-nextcloud"
# "nextcloud-redis-1 redis"
# "rlcraft-mc-1 itzg/minecraft-server:java8"
# "mc-router-mc-router-1 itzg/mc-router"

View File

@ -14,10 +14,7 @@ in
image = "nextcloud-custom:latest";
imageFile = nextcloud-image;
hostname = "nextcloud";
ports = [
"9999:80"
];
ports = [ "9999:80" ];
volumes = [
"/ZFS/ZFS-primary/nextcloud/nc_data:/var/www/html:z"
"/ZFS/ZFS-primary/nextcloud/nc_php:/usr/local/etc/php"
@ -30,6 +27,36 @@ in
"--network=nextcloud_default"
];
dependsOn = [ "redis" ];
environmentFiles = [ config.sops.secrets."docker/nextcloud".path ];
};
redis = {
image = "redis:latest";
extraOptions = [ "--restart=unless-stopped" ];
volumes = [ "${config.sops.secrets."docker/redis".path}:/usr/local/etc/redis/redis.conf" ];
cmd = [
"redis-server"
config.sops.secrets."docker/redis".path
];
};
go-vod = {
image = "radialapps/go-vod";
dependsOn = [ "nextcloud" ];
environment = {
NEXTCLOUD_HOST = "https://nextcloud.alicehuston.xyz";
};
volumes = [ "/ZFS/ZFS-primary/nextcloud/nc_data:/var/www/html:ro" ];
extraOptions = [
"--restart=always"
"--device=/dev/dri:/dev/dri"
];
};
};
sops = {
defaultSopsFile = ../secrets.yaml;
secrets = {
"docker/redis".owner = "docker-service";
"docker/nextcloud".owner = "docker-service";
};
};
}