Fix directory model
This commit is contained in:
@@ -7,6 +7,8 @@ arch:
|
|||||||
- amd64
|
- amd64
|
||||||
host_network: true
|
host_network: true
|
||||||
startup: application
|
startup: application
|
||||||
|
ingress: true
|
||||||
|
ingress_port: 8080
|
||||||
ports:
|
ports:
|
||||||
8080/tcp: 8080
|
8080/tcp: 8080
|
||||||
ports_description:
|
ports_description:
|
||||||
@@ -14,11 +16,10 @@ ports_description:
|
|||||||
environment:
|
environment:
|
||||||
LOCALAI_P2P: "true"
|
LOCALAI_P2P: "true"
|
||||||
LOCALAI_FEDERATED: "true"
|
LOCALAI_FEDERATED: "true"
|
||||||
|
LOCALAI_MODELS_PATH: "/share/localai/models"
|
||||||
map:
|
map:
|
||||||
- type: share
|
- share:/share
|
||||||
read_only: false
|
- config:/data
|
||||||
- type: addon_config
|
|
||||||
read_only: false
|
|
||||||
privileged:
|
privileged:
|
||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
options:
|
options:
|
||||||
|
|||||||
@@ -6,18 +6,19 @@ arch:
|
|||||||
- amd64
|
- amd64
|
||||||
host_network: true # OBLIGATOIRE pour P2P
|
host_network: true # OBLIGATOIRE pour P2P
|
||||||
startup: application
|
startup: application
|
||||||
|
ingress: true
|
||||||
|
ingress_port: 8080
|
||||||
ports:
|
ports:
|
||||||
8080/tcp: 8081 # Port différent si sur même réseau
|
8080/tcp: 8081 # Port différent si sur même réseau
|
||||||
environment:
|
environment:
|
||||||
LOCALAI_P2P: "true"
|
LOCALAI_P2P: "true"
|
||||||
LOCALAI_FEDERATED: "true"
|
LOCALAI_FEDERATED: "true"
|
||||||
|
LOCALAI_MODELS_PATH: "/share/localai/models"
|
||||||
THREADS: "8" # Utiliser tous les cœurs du 5800U
|
THREADS: "8" # Utiliser tous les cœurs du 5800U
|
||||||
OMP_NUM_THREADS: "8"
|
OMP_NUM_THREADS: "8"
|
||||||
map:
|
map:
|
||||||
- type: share
|
- share:/share
|
||||||
read_only: false
|
- config:/data
|
||||||
- type: addon_config
|
|
||||||
read_only: false
|
|
||||||
options:
|
options:
|
||||||
master_token: ""
|
master_token: ""
|
||||||
gpu_layers: 0
|
gpu_layers: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user