mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ config, ... }:
|
|
{
|
|
services.caddy.virtualHosts."booklore.wanderingcrow.net".extraConfig = ''
|
|
reverse_proxy http://10.88.0.4:6060
|
|
'';
|
|
virtualisation.quadlet = {
|
|
containers = {
|
|
booklore-web.containerConfig = {
|
|
image = "ghcr.io/booklore-app/booklore:v1.14.1";
|
|
environments = {
|
|
USER_ID = "0";
|
|
GROUP_ID = "0";
|
|
TZ = "America/New_York";
|
|
DATABASE_URL = "jdbc:mariadb://booklore-db:3306/booklore";
|
|
DB_USER = "booklore";
|
|
DB_PASSWORD = "changeme";
|
|
BOOKLORE_PORT = "6060";
|
|
};
|
|
publishPorts = [
|
|
""
|
|
];
|
|
pod = config.virtualisation.quadlet.pods.booklore.ref;
|
|
};
|
|
booklore-db.containerConfig = {
|
|
image = "lscr.io/linuxserver/mariadb:11.4.5";
|
|
environments = {
|
|
PUID = "1000";
|
|
PGID = "1000";
|
|
TZ = "America/New_York";
|
|
MYSQL_ROOT_PASSWORD = "changeme";
|
|
MYSQL_DATABASE = "booklore";
|
|
MYSQL_USER = "booklore";
|
|
MYSQL_PASSWORD = "changeme";
|
|
};
|
|
pod = config.virtualisation.quadlet.pods.booklore.ref;
|
|
};
|
|
};
|
|
pods.booklore = { };
|
|
};
|
|
}
|