diff --git a/apps/homer/26.08.3/docker-compose.yml b/apps/homer/26.08.3/docker-compose.yml index c30153b4c..1579d9a06 100644 --- a/apps/homer/26.08.3/docker-compose.yml +++ b/apps/homer/26.08.3/docker-compose.yml @@ -1,6 +1,6 @@ services: homer: - image: "b4bz/homer:v26.11.2" + image: "b4bz/homer:v26.08.3" container_name: ${CONTAINER_NAME} restart: always networks: diff --git a/apps/homer/26.11.1/docker-compose.yml b/apps/homer/26.11.1/docker-compose.yml index c30153b4c..75aa7c9fd 100644 --- a/apps/homer/26.11.1/docker-compose.yml +++ b/apps/homer/26.11.1/docker-compose.yml @@ -1,6 +1,6 @@ services: homer: - image: "b4bz/homer:v26.11.2" + image: "b4bz/homer:v26.11.1" container_name: ${CONTAINER_NAME} restart: always networks: diff --git a/apps/homer/26.11.2/.env.sample b/apps/homer/26.11.2/.env.sample new file mode 100644 index 000000000..6c5e94818 --- /dev/null +++ b/apps/homer/26.11.2/.env.sample @@ -0,0 +1,2 @@ +CONTAINER_NAME=homer-compose-check +PANEL_APP_PORT_HTTP=40300 diff --git a/apps/homer/26.11.2/data.yml b/apps/homer/26.11.2/data.yml new file mode 100644 index 000000000..3e05e0572 --- /dev/null +++ b/apps/homer/26.11.2/data.yml @@ -0,0 +1,35 @@ +additionalProperties: + formFields: + - default: 40300 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: HTTP Port + labelZh: HTTP 端口 + label: + en: HTTP Port + zh: HTTP 端口 + zh-Hant: HTTP 埠 + ja: HTTP ポート + ko: HTTP 포트 + ru: HTTP-порт + ms: Port HTTP + pt-br: Porta HTTP + required: true + rule: paramPort + type: number + - default: Asia/Shanghai + edit: true + envKey: TZ + labelEn: Timezone + labelZh: 时区 + label: + en: Timezone + zh: 时区 + zh-Hant: 時區 + ja: タイムゾーン + ko: 시간대 + ru: Часовой пояс + ms: Zon waktu + pt-br: Fuso horário + required: true + type: text diff --git a/apps/homer/26.11.2/data/assets/.gitkeep b/apps/homer/26.11.2/data/assets/.gitkeep new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/apps/homer/26.11.2/data/assets/.gitkeep @@ -0,0 +1 @@ + diff --git a/apps/homer/26.11.2/docker-compose.yml b/apps/homer/26.11.2/docker-compose.yml new file mode 100644 index 000000000..c30153b4c --- /dev/null +++ b/apps/homer/26.11.2/docker-compose.yml @@ -0,0 +1,33 @@ +services: + homer: + image: "b4bz/homer:v26.11.2" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:8080" + environment: + INIT_ASSETS: "1" + IPV6_DISABLE: "1" + volumes: + - "./data/assets:/www/assets" + read_only: true + tmpfs: + - /tmp:mode=1777 + cap_drop: + - ALL + security_opt: + - no-new-privileges:true + healthcheck: + test: ["CMD-SHELL", "wget --no-verbose -Y off --tries=1 --spider http://127.0.0.1:8080/ || exit 1"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 10s + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/homer/26.11.2/scripts/init.sh b/apps/homer/26.11.2/scripts/init.sh new file mode 100755 index 000000000..2c2122af4 --- /dev/null +++ b/apps/homer/26.11.2/scripts/init.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -euo pipefail + +root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" +data_dir="${root_dir}/data" +assets_dir="${data_dir}/assets" + +[[ ! -L "$data_dir" ]] || { echo "Homer data directory must not be a symbolic link" >&2; exit 1; } +[[ ! -L "$assets_dir" ]] || { echo "Homer assets directory must not be a symbolic link" >&2; exit 1; } + +mkdir -p -- "$assets_dir" +chown 1000:1000 "$data_dir" "$assets_dir" +chmod 750 "$data_dir" "$assets_dir" diff --git a/apps/homer/26.11.2/scripts/uninstall.sh b/apps/homer/26.11.2/scripts/uninstall.sh new file mode 100755 index 000000000..d5b274774 --- /dev/null +++ b/apps/homer/26.11.2/scripts/uninstall.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -euo pipefail + +docker compose down diff --git a/apps/homer/26.11.2/scripts/upgrade.sh b/apps/homer/26.11.2/scripts/upgrade.sh new file mode 100755 index 000000000..f43d4acf3 --- /dev/null +++ b/apps/homer/26.11.2/scripts/upgrade.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -euo pipefail + +script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" +exec "${script_dir}/init.sh"