built calibre-web
This commit is contained in:
parent
a99b62067d
commit
73572a3fc6
1 changed files with 21 additions and 2 deletions
|
@ -1,16 +1,35 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
containers.enable = true;
|
containers.enable = true;
|
||||||
podman.enable = true;
|
podman.enable = true;
|
||||||
oci-containers.containers = {
|
oci-containers.containers = {
|
||||||
calibre-web = {
|
calibre-web = {
|
||||||
image = "lscr.io/linuxserver/calibre-web:latest";
|
image = "my-calibre-web:latest";
|
||||||
|
imageFile = pkgs.dockerTools.buildLayeredImage {
|
||||||
|
name = "my-calibre-web";
|
||||||
|
tag = "latest";
|
||||||
|
contents = [ pkgs.busybox ];
|
||||||
|
config.Cmd = [
|
||||||
|
"${pkgs.calibre-web}/bin/calibre-web"
|
||||||
|
"-p"
|
||||||
|
"/config/app.db"
|
||||||
|
"-g"
|
||||||
|
"/config/gdrive.db"
|
||||||
|
"-i"
|
||||||
|
"0.0.0.0"
|
||||||
|
];
|
||||||
|
};
|
||||||
volumes = [
|
volumes = [
|
||||||
"calibre-web-config:/config"
|
"calibre-web-config:/config"
|
||||||
"/video-data:/data"
|
"/video-data:/data"
|
||||||
];
|
];
|
||||||
environment.TZ = "America/New_York";
|
environment.TZ = "America/New_York";
|
||||||
labels.swag = "enable";
|
labels = {
|
||||||
|
swag = "enable";
|
||||||
|
swag_url = "calibre-web.icanttype.org";
|
||||||
|
swag_port = "8083";
|
||||||
|
};
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--pull=newer"
|
"--pull=newer"
|
||||||
"--network=www"
|
"--network=www"
|
||||||
|
|
Loading…
Reference in a new issue