From 8bec8595f8008a5606d1b9d1faed0b08e4931775 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 26 Sep 2024 17:08:14 +0800 Subject: [PATCH] gladys --- apps/gladys/.env | 16 +++++++++++----- apps/gladys/docker-compose.yml | 7 +++++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/apps/gladys/.env b/apps/gladys/.env index ba7fe8e43..6f64ad2f0 100644 --- a/apps/gladys/.env +++ b/apps/gladys/.env @@ -3,9 +3,15 @@ W9_REPO=gladysassistant/gladys W9_DIST=community W9_VERSION=v4 -#### -- Not allowed to edit below environments when recreate app based on existing data -- #### -W9_NETWORK=websoft9 -W9_HTTP_PORT_SET=80 -W9_TZ=Europe/Paris +#### -- Not allowed to edit below environments when recreate app based on existing data -- #### +W9_HTTP_PORT_SET=9001 +W9_HTTP_PORT=80 +W9_URL=internet_ip +W9_NETWORK=websoft9 +#### --------------------------------------------------------------------------------------- #### -#### --------------------------------------------------------------------------------------- #### \ No newline at end of file +# ENV for Gladys +TZ=Europe/Paris +SERVER_PORT=80 +NODE_ENV=production +SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db diff --git a/apps/gladys/docker-compose.yml b/apps/gladys/docker-compose.yml index 725b8d5e2..ca21aecb6 100644 --- a/apps/gladys/docker-compose.yml +++ b/apps/gladys/docker-compose.yml @@ -19,18 +19,21 @@ services: - .env volumes: - /var/run/docker.sock:/var/run/docker.sock - - /var/lib/gladysassistant:/var/lib/gladysassistant + - gladysassistant:/var/lib/gladysassistant - /dev:/dev - /run/udev:/run/udev:ro watchtower: image: containrrr/watchtower restart: unless-stopped - container_name: watchtower + container_name: $W9_ID-watchtower command: --cleanup --include-restarting volumes: - /var/run/docker.sock:/var/run/docker.sock +volumes: + gladysassistant: + networks: default: name: ${W9_NETWORK}