mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
123
This commit is contained in:
+2
-11
@@ -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 .
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user