From 0f8a11925695d6eb24d0d3be247a37b1fcf64285 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 30 May 2025 12:18:31 +0200 Subject: [PATCH] Fix directory model --- localai-p2p-master/config.yaml | 9 +++++---- localai-p2p-worker/config.yaml | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/localai-p2p-master/config.yaml b/localai-p2p-master/config.yaml index 06bb09b..5d50311 100644 --- a/localai-p2p-master/config.yaml +++ b/localai-p2p-master/config.yaml @@ -7,6 +7,8 @@ arch: - amd64 host_network: true startup: application +ingress: true +ingress_port: 8080 ports: 8080/tcp: 8080 ports_description: @@ -14,11 +16,10 @@ ports_description: environment: LOCALAI_P2P: "true" LOCALAI_FEDERATED: "true" + LOCALAI_MODELS_PATH: "/share/localai/models" map: - - type: share - read_only: false - - type: addon_config - read_only: false + - share:/share + - config:/data privileged: - SYS_ADMIN options: diff --git a/localai-p2p-worker/config.yaml b/localai-p2p-worker/config.yaml index b06cb8c..1428892 100644 --- a/localai-p2p-worker/config.yaml +++ b/localai-p2p-worker/config.yaml @@ -6,18 +6,19 @@ arch: - amd64 host_network: true # OBLIGATOIRE pour P2P startup: application +ingress: true +ingress_port: 8080 ports: 8080/tcp: 8081 # Port différent si sur même réseau environment: LOCALAI_P2P: "true" LOCALAI_FEDERATED: "true" + LOCALAI_MODELS_PATH: "/share/localai/models" THREADS: "8" # Utiliser tous les cœurs du 5800U OMP_NUM_THREADS: "8" map: - - type: share - read_only: false - - type: addon_config - read_only: false + - share:/share + - config:/data options: master_token: "" gpu_layers: 0