docker migration + giving up on collabora
This commit is contained in:
48
server/docker.nix
Normal file
48
server/docker.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ arion docker-compose ];
|
||||
virtualisation = {
|
||||
docker = {
|
||||
enable = true;
|
||||
enableNvidia = true;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
|
||||
oci-containers = {
|
||||
backend = "docker";
|
||||
containers.collabora = {
|
||||
image = "collabora/code";
|
||||
imageFile = pkgs.dockerTools.pullImage {
|
||||
imageName = "collabora/code";
|
||||
imageDigest =
|
||||
"sha256:aab41379baf5652832e9237fcc06a768096a5a7fccc66cf8bd4fdb06d2cbba7f";
|
||||
sha256 = "sha256-M66lynhzaOEFnE15Sy1N6lBbGDxwNw6ap+IUJAvoCLs=";
|
||||
};
|
||||
ports = [ "9980:9980" ];
|
||||
environment = {
|
||||
domain = "cloud.servidos.lat";
|
||||
dictionaries = "en_CA en_US es_MX es_ES fr_FR it pt_BR ru";
|
||||
extra_params = "--o:ssl.enable=false --o:ssl.termination=true";
|
||||
};
|
||||
extraOptions = [ "--cap-add" "MKNOD" ];
|
||||
};
|
||||
};
|
||||
# arion = {
|
||||
# backend = "docker";
|
||||
# "collabora".settings.services."collabora".service = {
|
||||
# image = "collabora/code";
|
||||
# ports = [ "9980:9980/tcp" ];
|
||||
# environment = {
|
||||
# server_name = "collabora.servidos.lat";
|
||||
# aliasgroup1 = "https://cloud.servidos.lat:443";
|
||||
# dictionaries = "en_CA en_US es_MX es_ES fr_FR it pt_BR ru";
|
||||
# username = "jawz";
|
||||
# password = "password";
|
||||
# extra_params = "--o:ssl.enable=false --o:ssl.termination=true";
|
||||
# };
|
||||
# extraOptions = [ "--pull=newer" ];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user