mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
@@ -1,13 +1,11 @@
|
|||||||
# Auto-generated using compose2nix v0.3.2-pre.
|
# Auto-generated using compose2nix v0.3.3-pre.
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
docker-source = "/home/oqyude/3x-ui";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
# Runtime
|
# Runtime
|
||||||
virtualisation.podman = {
|
virtualisation.podman = {
|
||||||
@@ -35,8 +33,8 @@ in
|
|||||||
"XUI_ENABLE_FAIL2BAN" = "true";
|
"XUI_ENABLE_FAIL2BAN" = "true";
|
||||||
};
|
};
|
||||||
volumes = [
|
volumes = [
|
||||||
"${docker-source}/cert/:/root/cert:rw"
|
"/mnt/containers/3x-ui/cert/:/root/cert:rw"
|
||||||
"${docker-source}/db/:/etc/x-ui:rw"
|
"/mnt/containers/3x-ui/db/:/etc/x-ui:rw"
|
||||||
];
|
];
|
||||||
log-driver = "journald";
|
log-driver = "journald";
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
@@ -66,7 +64,7 @@ in
|
|||||||
TimeoutSec = 300;
|
TimeoutSec = 300;
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
cd ${docker-source}
|
cd /mnt/containers/3x-ui
|
||||||
podman build -t compose2nix/3xui_app -f ./Dockerfile .
|
podman build -t compose2nix/3xui_app -f ./Dockerfile .
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user