Compare commits
No commits in common. "671ff1d7747b1bc295849deb37f92219034829e2" and "2a2c524d16f716387f9a247361a42fc0564d2bd1" have entirely different histories.
671ff1d774
...
2a2c524d16
3 changed files with 7 additions and 38 deletions
|
|
@ -2,50 +2,24 @@
|
||||||
{
|
{
|
||||||
project.name = "openclaw";
|
project.name = "openclaw";
|
||||||
|
|
||||||
services = {
|
networks.openclaw.external = false;
|
||||||
gateway = {
|
|
||||||
service = {
|
|
||||||
image = "node:22-alpine";
|
|
||||||
container_name = "openclaw-gateway";
|
|
||||||
restart = "unless-stopped";
|
|
||||||
network_mode = "host";
|
|
||||||
volumes = [
|
|
||||||
"/var/openclaw/gateway:/app"
|
|
||||||
"/root/.openclaw:/root/.openclaw"
|
|
||||||
];
|
|
||||||
environment = {
|
|
||||||
OPENCLAW_HOME = "/root/.openclaw";
|
|
||||||
};
|
|
||||||
command = [
|
|
||||||
"sh" "-c"
|
|
||||||
''
|
|
||||||
set -e
|
|
||||||
if [ ! -f /app/node_modules/.bin/openclaw ]; then
|
|
||||||
cd /app && npm install openclaw@latest
|
|
||||||
fi
|
|
||||||
exec /app/node_modules/.bin/openclaw gateway --port 18789 --dev --auth none
|
|
||||||
''
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
services = {
|
||||||
app = {
|
app = {
|
||||||
service = {
|
service = {
|
||||||
image = "node:22-alpine";
|
image = "node:lts-alpine";
|
||||||
container_name = "openclaw";
|
container_name = "openclaw";
|
||||||
restart = "unless-stopped";
|
restart = "unless-stopped";
|
||||||
network_mode = "host";
|
networks = [ "openclaw" ];
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/openclaw/app:/app"
|
"/var/openclaw/app:/app"
|
||||||
"/var/openclaw/gateway:/gateway"
|
"/root/.openclaw:/root/.openclaw:ro"
|
||||||
"/root/.openclaw:/root/.openclaw"
|
|
||||||
];
|
];
|
||||||
|
ports = [ "127.0.0.1:4310:4310" ];
|
||||||
environment = {
|
environment = {
|
||||||
PORT = "4310";
|
PORT = "4310";
|
||||||
UI_BIND_ADDRESS = "127.0.0.1";
|
UI_BIND_ADDRESS = "0.0.0.0";
|
||||||
OPENCLAW_HOME = "/root/.openclaw";
|
OPENCLAW_HOME = "/root/.openclaw";
|
||||||
OPENCLAW_BIN_PATH = "/gateway/node_modules/.bin/openclaw";
|
|
||||||
OPENCLAW_GATEWAY_TOKEN = "openclaw-local-dev";
|
|
||||||
};
|
};
|
||||||
command = [
|
command = [
|
||||||
"sh" "-c"
|
"sh" "-c"
|
||||||
|
|
@ -61,9 +35,6 @@
|
||||||
sed -i "s|OPENCLAW_HOME=.*|OPENCLAW_HOME=/root/.openclaw|" .env
|
sed -i "s|OPENCLAW_HOME=.*|OPENCLAW_HOME=/root/.openclaw|" .env
|
||||||
sed -i "s|PORT=.*|PORT=4310|" .env
|
sed -i "s|PORT=.*|PORT=4310|" .env
|
||||||
fi
|
fi
|
||||||
sed -i 's/resolveUiLanguage(url.searchParams, "zh")/resolveUiLanguage(url.searchParams, "en")/g' src/ui/server.ts
|
|
||||||
sed -i 's/hasExplicitLanguage ? resolvedLanguage : "zh"/hasExplicitLanguage ? resolvedLanguage : "en"/g' src/ui/server.ts
|
|
||||||
sed -i 's/language: "zh",/language: "en",/g' src/runtime/ui-preferences.ts
|
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
exec npm run dev:ui
|
exec npm run dev:ui
|
||||||
|
|
|
||||||
|
|
@ -243,7 +243,6 @@ in {
|
||||||
"d /var/paperless/postgres 0755 root root"
|
"d /var/paperless/postgres 0755 root root"
|
||||||
"d /var/paperless/redis 0755 root root"
|
"d /var/paperless/redis 0755 root root"
|
||||||
"d /var/openclaw/app 0755 root root"
|
"d /var/openclaw/app 0755 root root"
|
||||||
"d /var/openclaw/gateway 0755 root root"
|
|
||||||
"d /var/riverside/files 0755 root root"
|
"d /var/riverside/files 0755 root root"
|
||||||
"d /var/riverside/postgres 0755 root root"
|
"d /var/riverside/postgres 0755 root root"
|
||||||
"d /var/lib/gitea-runner/ubuntu 0755 gitea-runner gitea-runner"
|
"d /var/lib/gitea-runner/ubuntu 0755 gitea-runner gitea-runner"
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,6 @@
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
basicAuthFile = "/var/openclaw/htpasswd";
|
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:4310/";
|
proxyPass = "http://127.0.0.1:4310/";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue