Add nextcloud service
This commit is contained in:
@ -17,6 +17,7 @@
|
|||||||
./services/gitea.nix
|
./services/gitea.nix
|
||||||
./services/gitea-runner.nix
|
./services/gitea-runner.nix
|
||||||
./services/homepage.nix
|
./services/homepage.nix
|
||||||
|
./services/nextcloud.nix
|
||||||
./services/nginx-proxy-manager.nix
|
./services/nginx-proxy-manager.nix
|
||||||
./services/pihole.nix
|
./services/pihole.nix
|
||||||
./services/portainer.nix
|
./services/portainer.nix
|
||||||
|
|||||||
@ -4,27 +4,88 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
virtualisation.oci-containers.containers.netflix = {
|
virtualisation.oci-containers.containers.nextcloud-db = {
|
||||||
image = "linuxserver/nextcloud:latest";
|
image = "postgres:alpine";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
dependsOn = [
|
dependsOn = [];
|
||||||
# "pihole"
|
|
||||||
];
|
|
||||||
|
|
||||||
ports = [
|
ports = [
|
||||||
# "443:443"
|
# "5432:5432"
|
||||||
];
|
];
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"nextcloud_config:/config"
|
"nextcloud-db_data:/var/lib/postgresql/data"
|
||||||
"nextcloud_data:/data"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
PUID = "1000";
|
POSTGRES_PASSWORD = "nextcloud";
|
||||||
PGID = "1000";
|
POSTGRES_DB = "nextcloud";
|
||||||
TZ = "Europe/Berlin";
|
POSTGRES_USER = "nextcloud";
|
||||||
|
};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation.oci-containers.containers.nextcloud-memcache = {
|
||||||
|
image = "redis:alpine";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# "6379:6379"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"nextcloud-memcache_data:/data"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation.oci-containers.containers.nextcloud = {
|
||||||
|
image = "nextcloud:apache";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
dependsOn = [
|
||||||
|
"nextcloud-db"
|
||||||
|
"nextcloud-memcache"
|
||||||
|
];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"8080:80"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"nextcloud_data:/var/www/html"
|
||||||
|
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
# Don't add PUID/PGID/TZ or sth like that!
|
||||||
|
|
||||||
|
# Proxy
|
||||||
|
APACHE_DISABLE_REWRITE_IP = "1";
|
||||||
|
TRUSTED_DOMAINS = "nextcloud.local.chriphost.de local.chriphost.de nextcloud.vps.chriphost.de vps.chriphost.de";
|
||||||
|
TRUSTED_PROXIES = "192.168.86.25 212.227.233.241";
|
||||||
|
OVERWRITEPROTOCOL = "https";
|
||||||
|
|
||||||
|
# DB
|
||||||
|
POSTGRES_HOST = "nextcloud-db";
|
||||||
|
POSTGRES_PASSWORD = "nextcloud";
|
||||||
|
POSTGRES_DB = "nextcloud";
|
||||||
|
POSTGRES_USER = "nextcloud";
|
||||||
|
|
||||||
|
# Memcache + Transactional Locking
|
||||||
|
REDIS_HOST = "nextcloud-memcache";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
|
|||||||
Reference in New Issue
Block a user