2022-10-10 13:03:08 +01:00
|
|
|
{config, ...}: {
|
2021-04-12 01:42:46 +01:00
|
|
|
virtualisation.pods.nextcloud = {
|
|
|
|
hostname = "nextcloud.tlater.net";
|
2022-10-10 13:03:08 +01:00
|
|
|
publish = ["3001:80"];
|
2021-05-16 00:40:09 +01:00
|
|
|
network = "slirp4netns";
|
2021-04-12 01:42:46 +01:00
|
|
|
|
|
|
|
containers = {
|
|
|
|
nextcloud = {
|
|
|
|
image = "nextcloud:fpm-alpine";
|
2022-10-10 13:03:08 +01:00
|
|
|
dependsOn = ["postgres"];
|
2021-04-12 01:42:46 +01:00
|
|
|
volumes = [
|
2021-10-13 15:29:12 +01:00
|
|
|
"nextcloud-root:/var/www/html"
|
2021-04-12 01:42:46 +01:00
|
|
|
"nextcloud-apps:/var/www/html/custom_apps"
|
|
|
|
"nextcloud-config:/var/www/html/config"
|
|
|
|
"nextcloud-data:/var/www/html/data"
|
|
|
|
];
|
|
|
|
environment = {
|
|
|
|
POSTGRES_DB = "nextcloud";
|
|
|
|
POSTGRES_USER = "nextcloud";
|
2022-01-08 00:27:01 +00:00
|
|
|
POSTGRES_HOST = "localhost";
|
2021-04-12 01:42:46 +01:00
|
|
|
OVERWRITEPROTOCOL = "https";
|
2021-10-13 13:27:27 +01:00
|
|
|
TRUSTED_PROXIES = "127.0.0.1";
|
2021-04-12 01:42:46 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
cron = {
|
|
|
|
image = "nextcloud:fpm-alpine";
|
|
|
|
entrypoint = "/cron.sh";
|
2022-10-10 13:03:08 +01:00
|
|
|
dependsOn = ["postgres" "nextcloud"];
|
|
|
|
extraOptions = ["--volumes-from=nextcloud-nextcloud"];
|
2021-04-12 01:42:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nginx = {
|
|
|
|
image = "nginx:alpine";
|
2022-10-10 13:03:08 +01:00
|
|
|
dependsOn = ["nextcloud"];
|
2021-10-13 15:29:12 +01:00
|
|
|
volumes = [
|
|
|
|
"nextcloud-root:/var/www/html:ro"
|
|
|
|
"${./configs/nginx-nextcloud.conf}:/etc/nginx/nginx.conf:ro"
|
|
|
|
];
|
2022-10-10 13:03:08 +01:00
|
|
|
extraOptions = ["--volumes-from=nextcloud-nextcloud"];
|
2021-04-12 01:42:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postgres = {
|
|
|
|
image = "postgres:alpine";
|
|
|
|
environment = {
|
|
|
|
POSTGRES_DB = "nextcloud";
|
|
|
|
POSTGRES_USER = "nextcloud";
|
|
|
|
};
|
2022-10-10 13:03:08 +01:00
|
|
|
volumes = ["nextcloud-postgres-14:/var/lib/postgresql/data"];
|
2021-04-12 01:42:46 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|