diff --git a/README.md b/README.md index 53accca..10177c4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ Experimenting with Pulumi for my container-based server setup. -Currently consists of one dedicated server and a NAS at a friend's house. - -Still trying to figure out the right abstraction for services here and how to properly organize everything. +Still trying to figure out the right abstraction for services and how to properly organize everything. diff --git a/index.ts b/index.ts index f68b8f7..78473ed 100644 --- a/index.ts +++ b/index.ts @@ -1,2 +1,2 @@ import "./services/haring"; -import "./services/kaneelnas"; +// import "./services/kaneelnas"; diff --git a/lib/service/providers.ts b/lib/service/providers.ts index 016cff3..2b6f2cb 100644 --- a/lib/service/providers.ts +++ b/lib/service/providers.ts @@ -5,7 +5,7 @@ export const haringDockerProvider = new Provider("haring", { context: "haring", }); -export const kaneelnasDockerProvider = new Provider("kaneelnas", { - host: "ssh://kaneelnas", - context: "kaneelnas", -}); +// export const kaneelnasDockerProvider = new Provider("kaneelnas", { +// host: "ssh://kaneelnas", +// context: "kaneelnas", +// }); diff --git a/services/kaneelnas.ts b/services/kaneelnas.ts index be6a3f9..448b991 100644 --- a/services/kaneelnas.ts +++ b/services/kaneelnas.ts @@ -1,47 +1,47 @@ -import { getEnv } from "~lib/env"; -import { mount } from "~lib/service/mounts"; -import { kaneelnasDockerProvider } from "~lib/service/providers"; -import { ContainerService } from "~lib/service/service"; - -const KANEELNAS_DOCKER = "/volume2/docker/bas"; -const KANEELNAS_DATA = "/volume1/data/bas"; -const KANEELNAS_HOST = getEnv("KANEELNAS_HOST"); - -const kaneelnasConnection = { - host: KANEELNAS_HOST, - user: getEnv("USERNAME"), -}; - -const kaneelnasQbittorrentService = new ContainerService( - "qbittorrent-kaneelnas", - { - image: "lscr.io/linuxserver/qbittorrent:5.1.4", - name: "qbittorrent-bas", - // servicePort: 8080, - // ports: [8450, 8451, "8451/udp"], - envs: { - WEBUI_PORT: 8450, - TORRENTING_PORT: 8451, - DOCKER_MODS: "ghcr.io/vuetorrent/vuetorrent-lsio-mod:latest", - PUID: 1027, - PGID: 100, - }, - mounts: [ - mount(`${KANEELNAS_DOCKER}/qbittorrent`, "/config", { - propagation: "private", - }), - mount(`${KANEELNAS_DATA}/torrents-kaneelnas`, "/downloads", { - propagation: "private", - }), - mount(`${KANEELNAS_DATA}/plex`, "/plex", { - propagation: "private", - }), - ], - networkMode: "host", - commandConnection: kaneelnasConnection, - destroyGraceSeconds: 60, - }, - { - provider: kaneelnasDockerProvider, - }, -); +// import { getEnv } from "~lib/env"; +// import { mount } from "~lib/service/mounts"; +// import { kaneelnasDockerProvider } from "~lib/service/providers"; +// import { ContainerService } from "~lib/service/service"; +// +// const KANEELNAS_DOCKER = "/volume2/docker/bas"; +// const KANEELNAS_DATA = "/volume1/data/bas"; +// const KANEELNAS_HOST = getEnv("KANEELNAS_HOST"); +// +// const kaneelnasConnection = { +// host: KANEELNAS_HOST, +// user: getEnv("USERNAME"), +// }; +// +// const kaneelnasQbittorrentService = new ContainerService( +// "qbittorrent-kaneelnas", +// { +// image: "lscr.io/linuxserver/qbittorrent:5.1.4", +// name: "qbittorrent-bas", +// // servicePort: 8080, +// // ports: [8450, 8451, "8451/udp"], +// envs: { +// WEBUI_PORT: 8450, +// TORRENTING_PORT: 8451, +// DOCKER_MODS: "ghcr.io/vuetorrent/vuetorrent-lsio-mod:latest", +// PUID: 1027, +// PGID: 100, +// }, +// mounts: [ +// mount(`${KANEELNAS_DOCKER}/qbittorrent`, "/config", { +// propagation: "private", +// }), +// mount(`${KANEELNAS_DATA}/torrents-kaneelnas`, "/downloads", { +// propagation: "private", +// }), +// mount(`${KANEELNAS_DATA}/plex`, "/plex", { +// propagation: "private", +// }), +// ], +// networkMode: "host", +// commandConnection: kaneelnasConnection, +// destroyGraceSeconds: 60, +// }, +// { +// provider: kaneelnasDockerProvider, +// }, +// );