feat:添加ntfy到列表
This commit is contained in:
6
apps/ntfy/latest/.env.sample
Normal file
6
apps/ntfy/latest/.env.sample
Normal file
@@ -0,0 +1,6 @@
|
||||
CONTAINER_NAME="ntfy"
|
||||
PANEL_APP_PORT_HTTP=40265
|
||||
APP_PORT_INTERNAL=80
|
||||
PGID=1000
|
||||
PUID=1000
|
||||
TIME_ZONE="Asia/Shanghai"
|
||||
39
apps/ntfy/latest/data.yml
Normal file
39
apps/ntfy/latest/data.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "40265"
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "80"
|
||||
edit: true
|
||||
envKey: APP_PORT_INTERNAL
|
||||
labelEn: Internal Container Ports
|
||||
labelZh: 容器内部端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "Asia/Shanghai"
|
||||
edit: true
|
||||
envKey: TIME_ZONE
|
||||
labelEn: Time Zone
|
||||
labelZh: 时区
|
||||
required: true
|
||||
type: text
|
||||
- default: "1000"
|
||||
edit: true
|
||||
envKey: PUID
|
||||
labelEn: User ID
|
||||
labelZh: 用户 ID
|
||||
required: true
|
||||
type: number
|
||||
- default: "1000"
|
||||
edit: true
|
||||
envKey: PGID
|
||||
labelEn: Group ID
|
||||
labelZh: 组 ID
|
||||
required: true
|
||||
type: number
|
||||
29
apps/ntfy/latest/docker-compose.yml
Normal file
29
apps/ntfy/latest/docker-compose.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
ntfy:
|
||||
image: "binwiederhier/ntfy:latest"
|
||||
container_name: ${CONTAINER_NAME}
|
||||
command:
|
||||
- serve
|
||||
environment:
|
||||
- TZ=${TIME_ZONE}
|
||||
user: ${PUID}:${PGID}
|
||||
volumes:
|
||||
- ./data/cache/ntfy:/var/cache/ntfy
|
||||
- ./data/ntfy:/etc/ntfy
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:${APP_PORT_INTERNAL}"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:${APP_PORT_INTERNAL}/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
|
||||
interval: 60s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user