This commit is contained in:
2026-02-17 21:56:26 +03:00
parent 1dd0808f8f
commit 2988c9cf56
+2 -11
View File
@@ -35,17 +35,8 @@
# Containers # Containers
virtualisation.oci-containers.containers."3xui_app" = { virtualisation.oci-containers.containers."3xui_app" = {
image = "3xui_app:latest";
imageFile = pkgs.dockerTools.buildImage {
name = "3xui_app";
fromImage = /etc/containers/3x-ui.tar.gz;
config = {
Cmd = [ "/3xui_app/serve" ];
WorkingDir = "/3xui_app";
};
};
# image = "docker.io/metaligh/3x-ui:latest"; # image = "docker.io/metaligh/3x-ui:latest";
image = "compose2nix/3xui_app:latest";
# image = "localhost:7443/compose2nix/3xui_app"; # image = "localhost:7443/compose2nix/3xui_app";
environment = { environment = {
"XRAY_VMESS_AEAD_FORCED" = "false"; "XRAY_VMESS_AEAD_FORCED" = "false";
@@ -83,7 +74,7 @@
TimeoutSec = 300; TimeoutSec = 300;
}; };
script = '' script = ''
cd /mnt/containers/3x-ui cd /mnt/containers/3x-ui/image
podman build -t compose2nix/3xui_app -f ./Dockerfile . podman build -t compose2nix/3xui_app -f ./Dockerfile .
''; '';
}; };