Update app version [skip ci]
This commit is contained in:
10
apps/photoview/2.4.0/.env.sample
Normal file
10
apps/photoview/2.4.0/.env.sample
Normal file
@@ -0,0 +1,10 @@
|
||||
CONTAINER_NAME="photoview"
|
||||
CACHE_PATH="./data/cache"
|
||||
DATA_PATH="./data/photos"
|
||||
PANEL_APP_PORT_HTTP="40100"
|
||||
PANEL_DB_HOST="mysql"
|
||||
PANEL_DB_NAME="photoview"
|
||||
PANEL_DB_USER="photoview"
|
||||
PANEL_DB_USER_PASSWORD="photoview_fMHR4h"
|
||||
PHOTOVIEW_DB_PORT="3306"
|
||||
|
||||
68
apps/photoview/2.4.0/data.yml
Normal file
68
apps/photoview/2.4.0/data.yml
Normal file
@@ -0,0 +1,68 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
required: true
|
||||
type: service
|
||||
default: mysql
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
params:
|
||||
- envKey: PHOTOVIEW_DB_PORT
|
||||
key: mysql
|
||||
type: param
|
||||
value: "3306"
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- default: photoview
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database (requires MySQL8)
|
||||
labelZh: 数据库名(要求MySQL8)
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: photoview
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: photoview
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: 40100
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data/photos
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Photos folder path (Inside the container "/photos")
|
||||
labelZh: 照片文件夹路径(容器内部"/photos")
|
||||
required: true
|
||||
type: text
|
||||
- default: ./data/cache
|
||||
edit: true
|
||||
envKey: CACHE_PATH
|
||||
labelEn: Cache folder path
|
||||
labelZh: 缓存文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
26
apps/photoview/2.4.0/docker-compose.yml
Normal file
26
apps/photoview/2.4.0/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
photoview:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:80"
|
||||
volumes:
|
||||
- ${CACHE_PATH}:/app/cache
|
||||
- ${DATA_PATH}:/photos:ro
|
||||
environment:
|
||||
- PHOTOVIEW_DATABASE_DRIVER=mysql
|
||||
- PHOTOVIEW_MYSQL_URL=${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@tcp(${PANEL_DB_HOST}:${PHOTOVIEW_DB_PORT})/${PANEL_DB_NAME}
|
||||
- PHOTOVIEW_LISTEN_IP=photoview
|
||||
- PHOTOVIEW_LISTEN_PORT=80
|
||||
- PHOTOVIEW_MEDIA_CACHE=/app/cache
|
||||
# - GODEBUG=asyncpreemptoff=1 # Optional: If you are using Samba/CIFS-Share and experience problems with "directory not found"
|
||||
# - MAPBOX_TOKEN=<YOUR TOKEN HERE> # A token can be generated for free here https://account.mapbox.com/access-tokens/
|
||||
image: viktorstrate/photoview:2.4.0
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user