Move containers into its own folder
This commit is contained in:
parent
a709e4d593
commit
f9f7494ea6
2 changed files with 1 additions and 1 deletions
113
containers/default.nix
Normal file
113
containers/default.nix
Normal file
|
@ -0,0 +1,113 @@
|
|||
{ settings
|
||||
, ...
|
||||
}: {
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker";
|
||||
containers = {
|
||||
epicgames-freegames-node = {
|
||||
autoStart = true;
|
||||
image = "ghcr.io/claabs/epicgames-freegames-node:latest";
|
||||
volumes = [
|
||||
"${settings.server_configs_home}/epicgames-freegames-node:/usr/app/config"
|
||||
];
|
||||
environment = {
|
||||
BASE_URL = "http://epic.internal";
|
||||
RUN_ON_STARTUP = "true";
|
||||
NTFY_PRIORITY = "urgent";
|
||||
};
|
||||
environmentFiles = [
|
||||
"/etc/secrets/efn.env"
|
||||
];
|
||||
ports = [
|
||||
"${toString settings.ports.epicgames-freegames-node}:3000"
|
||||
];
|
||||
};
|
||||
mautrix-discord = {
|
||||
autoStart = true;
|
||||
image = "dock.mau.dev/mautrix/discord:v0.7.0";
|
||||
volumes = [
|
||||
"/var/lib/mautrix-discord:/data"
|
||||
];
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
];
|
||||
};
|
||||
plextraktsync = {
|
||||
autoStart = true;
|
||||
image = "ghcr.io/taxel/plextraktsync";
|
||||
cmd = [ "watch" ];
|
||||
environment = {
|
||||
PUID = "1000";
|
||||
PGID = "1000";
|
||||
TZ = "Europe/Tallinn";
|
||||
};
|
||||
volumes = [
|
||||
"${settings.server_configs_home}/plextraktsync:/app/config"
|
||||
];
|
||||
};
|
||||
cross-seed = {
|
||||
autoStart = true;
|
||||
image = "docker.io/crossseed/cross-seed:5.9.2";
|
||||
volumes = [
|
||||
"${settings.server_configs_home}/cross-seed/config:/config"
|
||||
"${settings.server_configs_home}/cross-seed/cross-seed:/cross-seeds"
|
||||
"/home/owo/.local/share/qBittorrent/BT_backup:/torrents"
|
||||
];
|
||||
cmd = [
|
||||
"daemon"
|
||||
];
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
];
|
||||
};
|
||||
watchtower = {
|
||||
autoStart = true;
|
||||
image = "docker.io/containrrr/watchtower:latest-dev";
|
||||
volumes = [
|
||||
"/var/run/docker.sock:/var/run/docker.sock"
|
||||
"/home/owo/.docker/config.json:/config.json"
|
||||
];
|
||||
environment = {
|
||||
WATCHTOWER_NOTIFICATIONS = "shoutrrr";
|
||||
WATCHTOWER_WARN_ON_HEAD_FAILURE = "never";
|
||||
};
|
||||
environmentFiles = [
|
||||
# Contains WATCHTOWER_NOTIFICATION_URL
|
||||
"/etc/secrets/watchtower.env"
|
||||
];
|
||||
cmd = [
|
||||
"--interval=60"
|
||||
];
|
||||
};
|
||||
archivebox =
|
||||
let
|
||||
internalHttpPort = 8000;
|
||||
in
|
||||
{
|
||||
autoStart = true;
|
||||
image = "docker.io/archivebox/archivebox:master";
|
||||
cmd = [
|
||||
"server"
|
||||
"0.0.0.0:${toString internalHttpPort}"
|
||||
];
|
||||
ports = [
|
||||
"${toString settings.ports.archivebox}:${toString internalHttpPort}"
|
||||
];
|
||||
environment = {
|
||||
ALLOWED_HOSTS = "*";
|
||||
MEDIA_MAX_SIZE = "750m";
|
||||
};
|
||||
volumes = [
|
||||
"${settings.server_configs_home}/archivebox:/data"
|
||||
];
|
||||
};
|
||||
jellyfin-vue = {
|
||||
autoStart = true;
|
||||
image = "docker.io/jellyfin/jellyfin-vue:unstable";
|
||||
ports = [
|
||||
"${toString settings.ports.jellyfin_vue}:80"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue