2020-02-08 12:30:01 +00:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
networked-docker-containers = {
|
|
|
|
nextcloud = {
|
|
|
|
image = "nextcloud:fpm-alpine";
|
2020-07-13 21:39:31 +01:00
|
|
|
dependsOn = ["nextcloud-postgres"];
|
2020-02-08 12:30:01 +00:00
|
|
|
volumes = [
|
2020-07-12 18:36:52 +01:00
|
|
|
"nextcloud-apps:/var/www/html/custom_apps"
|
|
|
|
"nextcloud-config:/var/www/html/config"
|
|
|
|
"nextcloud-data:/var/www/html/data"
|
2020-02-08 12:30:01 +00:00
|
|
|
];
|
|
|
|
environment = {
|
|
|
|
POSTGRES_DB = "nextcloud";
|
|
|
|
POSTGRES_USER = "nextcloud";
|
|
|
|
POSTGRES_HOST = "nextcloud-postgres";
|
|
|
|
POSTGRES_PASSWORD = "rI7t7Nek1yGA9ucrRc7Uhy0jcjwPjnXa8me4o8tJON8=";
|
2020-07-27 18:11:30 +01:00
|
|
|
OVERWRITEPROTOCOL = "https";
|
2020-02-08 12:30:01 +00:00
|
|
|
};
|
|
|
|
networks = [
|
|
|
|
"nextcloud"
|
|
|
|
];
|
|
|
|
extraDockerOptions = [
|
|
|
|
"--domainname=nextcloud.tlater.net"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2020-09-29 12:57:04 +01:00
|
|
|
nextcloud-cron = {
|
|
|
|
image = "nextcloud:fpm-alpine";
|
|
|
|
entrypoint = "/cron.sh";
|
|
|
|
dependsOn = ["nextcloud-postgres"];
|
|
|
|
extraDockerOptions = [
|
|
|
|
"--volumes-from"
|
|
|
|
"nextcloud"
|
|
|
|
];
|
2020-09-29 15:19:43 +01:00
|
|
|
networks = [
|
|
|
|
"nextcloud"
|
|
|
|
];
|
2020-09-29 12:57:04 +01:00
|
|
|
};
|
|
|
|
|
2020-02-08 12:30:01 +00:00
|
|
|
nextcloud-nginx = {
|
|
|
|
image = "nginx:alpine";
|
2020-07-13 21:39:31 +01:00
|
|
|
dependsOn = ["nextcloud"];
|
2020-02-08 12:30:01 +00:00
|
|
|
environment = {
|
|
|
|
LETSENCRYPT_HOST = "nextcloud.tlater.net";
|
|
|
|
VIRTUAL_HOST = "nextcloud.tlater.net";
|
|
|
|
};
|
|
|
|
volumes = [
|
2020-07-13 21:40:41 +01:00
|
|
|
"${./configs/nginx-nextcloud.conf}:/etc/nginx/nginx.conf:ro"
|
2020-02-08 12:30:01 +00:00
|
|
|
];
|
|
|
|
networks = [
|
|
|
|
"webproxy"
|
|
|
|
"nextcloud"
|
|
|
|
];
|
|
|
|
extraDockerOptions = [
|
|
|
|
"--volumes-from"
|
|
|
|
"nextcloud"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nextcloud-postgres = {
|
|
|
|
image = "postgres:alpine";
|
|
|
|
environment = {
|
|
|
|
POSTGRES_DB = "nextcloud";
|
|
|
|
POSTGRES_USER = "nextcloud";
|
|
|
|
POSTGRES_PASSWORD = "rI7t7Nek1yGA9ucrRc7Uhy0jcjwPjnXa8me4o8tJON8=";
|
|
|
|
};
|
|
|
|
volumes = [
|
2021-01-19 01:00:31 +00:00
|
|
|
"nextcloud-db-data-new:/var/lib/postgresql/data"
|
2020-02-08 12:30:01 +00:00
|
|
|
];
|
|
|
|
networks = [
|
|
|
|
"nextcloud"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|