Tristan Daniël Maat
3c01b94156
This is important so that `docker volume ls` gives useful information.
63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
networked-docker-containers = {
|
|
nextcloud = {
|
|
image = "nextcloud:fpm-alpine";
|
|
dependsOn = ["docker-nextcloud-postgres.service"];
|
|
volumes = [
|
|
"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";
|
|
POSTGRES_HOST = "nextcloud-postgres";
|
|
POSTGRES_PASSWORD = "rI7t7Nek1yGA9ucrRc7Uhy0jcjwPjnXa8me4o8tJON8=";
|
|
};
|
|
networks = [
|
|
"nextcloud"
|
|
];
|
|
extraDockerOptions = [
|
|
"--domainname=nextcloud.tlater.net"
|
|
];
|
|
};
|
|
|
|
nextcloud-nginx = {
|
|
image = "nginx:alpine";
|
|
dependsOn = ["docker-nextcloud.service"];
|
|
environment = {
|
|
LETSENCRYPT_HOST = "nextcloud.tlater.net";
|
|
VIRTUAL_HOST = "nextcloud.tlater.net";
|
|
};
|
|
volumes = [
|
|
"${./configs/nginx-nextcloud.conf}:/etc/nginx/conf.d/default.conf:ro"
|
|
];
|
|
networks = [
|
|
"webproxy"
|
|
"nextcloud"
|
|
];
|
|
extraDockerOptions = [
|
|
"--volumes-from"
|
|
"nextcloud"
|
|
];
|
|
};
|
|
|
|
nextcloud-postgres = {
|
|
image = "postgres:alpine";
|
|
environment = {
|
|
POSTGRES_DB = "nextcloud";
|
|
POSTGRES_USER = "nextcloud";
|
|
POSTGRES_PASSWORD = "rI7t7Nek1yGA9ucrRc7Uhy0jcjwPjnXa8me4o8tJON8=";
|
|
};
|
|
volumes = [
|
|
"nextcloud-db-data:/var/lib/postgresql/data"
|
|
];
|
|
networks = [
|
|
"nextcloud"
|
|
];
|
|
};
|
|
};
|
|
}
|