Add nextcloud stack
This commit is contained in:
parent
cb9f29154f
commit
ae341630bd
2 changed files with 69 additions and 0 deletions
|
|
@ -365,6 +365,58 @@
|
||||||
|
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Nextcloud cloud storage and file sharing
|
||||||
|
containers.cloud = {
|
||||||
|
image = "docker.io/linuxserver/nextcloud:latest";
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/home/yanlin/deploy/data/cloud/config:/config"
|
||||||
|
"/mnt/storage/appbulk/cloud:/data"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "100";
|
||||||
|
TZ = "Europe/Copenhagen";
|
||||||
|
};
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"5001:80"
|
||||||
|
];
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--network=podman"
|
||||||
|
];
|
||||||
|
|
||||||
|
dependsOn = [ "cloud-db" ];
|
||||||
|
autoStart = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# MariaDB database for Nextcloud
|
||||||
|
containers.cloud-db = {
|
||||||
|
image = "docker.io/linuxserver/mariadb:latest";
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"/home/yanlin/deploy/data/cloud/db:/config"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "100";
|
||||||
|
TZ = "Europe/Copenhagen";
|
||||||
|
MYSQL_ROOT_PASSWORD = "nextcloud";
|
||||||
|
MYSQL_DATABASE = "nextcloud";
|
||||||
|
MYSQL_USER = "nextcloud";
|
||||||
|
MYSQL_PASSWORD = "nextcloud";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--network=podman"
|
||||||
|
];
|
||||||
|
|
||||||
|
autoStart = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,16 @@
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
cloud = {
|
||||||
|
rule = "Host(`cloud.hs.yanlincs.com`)";
|
||||||
|
service = "cloud";
|
||||||
|
tls = {
|
||||||
|
certResolver = "cloudflare";
|
||||||
|
domains = [{
|
||||||
|
main = "*.hs.yanlincs.com";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
homeassistant = {
|
homeassistant = {
|
||||||
|
|
@ -250,6 +260,13 @@
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
cloud = {
|
||||||
|
loadBalancer = {
|
||||||
|
servers = [{
|
||||||
|
url = "http://localhost:5001";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue