mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
nc aio
This commit is contained in:
parent
44a6561612
commit
0e33da8040
2 changed files with 51 additions and 1 deletions
50
modules/containers/docker/nextcloud/aio-compose.nix
Normal file
50
modules/containers/docker/nextcloud/aio-compose.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
nextcloudExternalDomain = "cloud.death916.xyz";
|
||||
collaboraExternalDomain = "office.death916.xyz";
|
||||
|
||||
nextcloudDataPath = "/storage/nextcloud-data";
|
||||
adminPassFilePath = "/etc/nixos/secrets/nextcloud_admin_password";
|
||||
dbPassFilePath = "/etc/nixos/secrets/nextcloud_db_password";
|
||||
|
||||
nginxProxyManagerTailscaleIP = "100.117.212.36";
|
||||
homelabTailscaleIP = "100.65.36.116";
|
||||
|
||||
dockerBaseDir = "/var/lib/nextcloud-docker";
|
||||
in
|
||||
{
|
||||
virtualisation.oci-containers.backend = "docker";
|
||||
|
||||
virtualisation.oci-containers.containers.nextcloud-aio-mastercontainer = {
|
||||
image = "nextcloud/all-in-one:latest";
|
||||
autoStart = true;
|
||||
ports = [
|
||||
"8080:8080" # AIO Interface
|
||||
"11000:11000" # Apache Port (for Reverse Proxy)
|
||||
];
|
||||
environment = {
|
||||
NEXTCLOUD_DATADIR = nextcloudDataPath;
|
||||
APACHE_PORT = "11000";
|
||||
APACHE_IP_BINDING = "0.0.0.0";
|
||||
};
|
||||
volumes = [
|
||||
"${dockerBaseDir}/aio-config:/mnt/docker-aio-config"
|
||||
"/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
];
|
||||
extraOptions = [
|
||||
"--init"
|
||||
"--sig-proxy=false"
|
||||
];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
8080
|
||||
11000
|
||||
];
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
../../c2cscrape.nix
|
||||
../../../modules/containers/docker/dispatcharr/docker-compose.nix
|
||||
../../../modules/containers/haos.nix
|
||||
../../../modules/containers/docker/nextcloud/compose.nix
|
||||
../../../modules/containers/docker/nextcloud/aio-compose.nix
|
||||
|
||||
];
|
||||
arrSuite.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue