Skip to content

Commit

Permalink
feat: start oci container using systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
icecreammatt committed Jan 18, 2024
1 parent cdefbb7 commit 6baf949
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
9 changes: 1 addition & 8 deletions hosts/nixos/mini/caddy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
}
'';

# Silverbullet
virtualHosts."notes.c4er.com".extraConfig = ''
tls /mnt/certs/c4er.com/c4er.com.crt /mnt/certs/c4er.com/c4er.com.key
Expand All @@ -55,14 +56,6 @@
}
'';

virtualHosts."silverbullet.c4er.com".extraConfig = ''
tls /mnt/certs/c4er.com/c4er.com.crt /mnt/certs/c4er.com/c4er.com.key
handle_path /* {
reverse_proxy localhost:3071
}
'';

virtualHosts."excalidraw.c4er.com".extraConfig = ''
tls /mnt/certs/c4er.com/c4er.com.crt /mnt/certs/c4er.com/c4er.com.key
Expand Down
16 changes: 16 additions & 0 deletions hosts/nixos/mini/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,22 @@
};
};

virtualisation.oci-containers = {
backend = "docker";
containers = {
silverbullet = {
ports = ["127.0.0.1:3071:3000"];
image = "zefhemel/silverbullet:latest";
# command = [ "/bin/sh" ];
# args = [ "-c" "echo 'Hello, world!'" ];
volumes = [
"/home/matt/SyncWork/Notes/Notes:/space"
];
# restartPolicy = "always";
};
};
};

systemd.services.nebula = {
enable = true;
description = "nebula";
Expand Down

0 comments on commit 6baf949

Please sign in to comment.