feat: mount volumes on startup

This commit is contained in:
Nicolas Meienberger
2025-09-23 19:15:28 +02:00
parent f67152146d
commit 3734ba2925
14 changed files with 159 additions and 18 deletions

View File

@@ -2,16 +2,14 @@ import { type } from "arktype";
import "dotenv/config";
const envSchema = type({
NODE_ENV: type
.enumerated("development", "production", "test")
.default("development"),
NODE_ENV: type.enumerated("development", "production", "test").default("development"),
VOLUME_ROOT: "string",
}).pipe((s) => ({
__prod__: s.NODE_ENV === "production",
environment: s.NODE_ENV,
dbFileName: "/data/ironmount.db",
volumeRootHost: s.VOLUME_ROOT,
volumeRootContainer: "/mnt/volumes",
volumeRootContainer: "/mounts",
}));
const parseConfig = (env: unknown) => {