chore(deps): update ghcr.io/pooneyy/kotatsu-syncserver docker tag to v20251107 (#2519)
This commit is contained in:
134
apps/kotatsu/20251107/config/database.sql
Normal file
134
apps/kotatsu/20251107/config/database.sql
Normal file
@@ -0,0 +1,134 @@
|
||||
drop table if exists favourites;
|
||||
|
||||
drop table if exists categories;
|
||||
|
||||
drop table if exists history;
|
||||
|
||||
drop table if exists manga_tags;
|
||||
|
||||
drop table if exists manga;
|
||||
|
||||
drop table if exists tags;
|
||||
|
||||
drop table if exists users;
|
||||
|
||||
create table manga
|
||||
(
|
||||
id bigint not null,
|
||||
title varchar(84) not null,
|
||||
alt_title varchar(84) null,
|
||||
url varchar(255) not null,
|
||||
public_url varchar(255) not null,
|
||||
rating float not null,
|
||||
content_rating char(12) null,
|
||||
cover_url varchar(255) not null,
|
||||
large_cover_url varchar(255) null,
|
||||
state char(12) null,
|
||||
author varchar(64) null,
|
||||
source varchar(32) not null,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
create table tags
|
||||
(
|
||||
id bigint not null,
|
||||
title varchar(64) not null,
|
||||
`key` varchar(120) not null,
|
||||
source varchar(32) not null,
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
create table manga_tags
|
||||
(
|
||||
manga_id bigint not null,
|
||||
tag_id bigint not null,
|
||||
primary key (manga_id, tag_id),
|
||||
constraint manga_tags_ibfk_1
|
||||
foreign key (tag_id) references tags (id),
|
||||
constraint manga_tags_ibfk_2
|
||||
foreign key (manga_id) references manga (id)
|
||||
on delete cascade
|
||||
);
|
||||
|
||||
create index tag_id
|
||||
on manga_tags (tag_id);
|
||||
|
||||
create table users
|
||||
(
|
||||
id int auto_increment
|
||||
primary key,
|
||||
email varchar(120) not null,
|
||||
password char(32) not null,
|
||||
nickname varchar(84) null,
|
||||
favourites_sync_timestamp bigint null,
|
||||
history_sync_timestamp bigint null
|
||||
);
|
||||
|
||||
create table categories
|
||||
(
|
||||
id bigint not null,
|
||||
created_at bigint not null,
|
||||
sort_key int not null,
|
||||
title varchar(120) not null,
|
||||
`order` char(16) not null,
|
||||
user_id int not null,
|
||||
track tinyint(1) not null,
|
||||
show_in_lib tinyint(1) not null,
|
||||
deleted_at bigint not null,
|
||||
primary key (id, user_id),
|
||||
constraint categories_ibfk_1
|
||||
foreign key (user_id) references users (id)
|
||||
on delete cascade
|
||||
);
|
||||
|
||||
create index categories_id_index
|
||||
on categories (id);
|
||||
|
||||
create table favourites
|
||||
(
|
||||
manga_id bigint not null,
|
||||
category_id bigint not null,
|
||||
sort_key int not null,
|
||||
pinned tinyint(1) not null,
|
||||
created_at bigint not null,
|
||||
deleted_at bigint not null,
|
||||
user_id int not null,
|
||||
primary key (manga_id, category_id, user_id),
|
||||
constraint favourites_categories_id_pk
|
||||
foreign key (category_id, user_id) references categories (id, user_id),
|
||||
constraint favourites_ibfk_1
|
||||
foreign key (manga_id) references manga (id),
|
||||
constraint favourites_ibfk_2
|
||||
foreign key (user_id) references users (id)
|
||||
);
|
||||
|
||||
create index user_id
|
||||
on favourites (user_id);
|
||||
|
||||
create table history
|
||||
(
|
||||
manga_id bigint not null,
|
||||
created_at bigint not null,
|
||||
updated_at bigint not null,
|
||||
chapter_id bigint not null,
|
||||
page smallint not null,
|
||||
scroll double not null,
|
||||
percent double not null,
|
||||
chapters int not null,
|
||||
deleted_at bigint not null,
|
||||
user_id int not null,
|
||||
primary key (user_id, manga_id),
|
||||
constraint history_ibfk_1
|
||||
foreign key (manga_id) references manga (id),
|
||||
constraint history_ibfk_2
|
||||
foreign key (user_id) references users (id)
|
||||
on delete cascade
|
||||
);
|
||||
|
||||
create index manga_id
|
||||
on history (manga_id);
|
||||
|
||||
create unique index users_email_uindex
|
||||
on users (email);
|
||||
|
||||
|
||||
111
apps/kotatsu/20251107/data.yml
Normal file
111
apps/kotatsu/20251107/data.yml
Normal file
@@ -0,0 +1,111 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: mysql
|
||||
edit: true
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelZh: MySQL 服务 (前置检查)
|
||||
labelEn: Database Service (Pre-check)
|
||||
label:
|
||||
en: Database Service (Pre-check)
|
||||
zh: MySQL 服务 (前置检查)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: MariaDB
|
||||
value: mariadb
|
||||
- label: Percona
|
||||
value: percona
|
||||
- default: 8080
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
label:
|
||||
en: WebUI port
|
||||
zh: WebUI 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: JWT_SECRET
|
||||
labelZh: JWT 密钥
|
||||
labelEn: JWT secret
|
||||
label:
|
||||
en: JWT secret
|
||||
zh: JWT 密钥
|
||||
required: true
|
||||
type: password
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DATABASE_HOST
|
||||
labelZh: 数据库 主机
|
||||
labelEn: Database Host
|
||||
label:
|
||||
en: Database Host
|
||||
zh: 数据库 主机
|
||||
required: true
|
||||
type: text
|
||||
- default: 3306
|
||||
edit: true
|
||||
envKey: DATABASE_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
label:
|
||||
en: Database Port
|
||||
zh: 数据库 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "kotatsu-syncserver"
|
||||
edit: true
|
||||
envKey: DATABASE_NAME
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
label:
|
||||
en: Database Name
|
||||
zh: 数据库 名称
|
||||
required: true
|
||||
type: text
|
||||
- default: "kotatsu-syncserver"
|
||||
edit: true
|
||||
envKey: DATABASE_USER
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database Username
|
||||
label:
|
||||
en: Database Username
|
||||
zh: 数据库 用户名
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: DATABASE_PASSWORD
|
||||
labelZh: 数据库 密码
|
||||
labelEn: Database Password
|
||||
label:
|
||||
en: Database Password
|
||||
zh: 数据库 密码
|
||||
required: true
|
||||
type: password
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: ALLOW_NEW_REGISTER
|
||||
labelZh: 允许新用户注册
|
||||
labelEn: Allow new users to register
|
||||
label:
|
||||
en: Allow new users to register
|
||||
zh: 允许新用户注册
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 开放注册
|
||||
value: "true"
|
||||
- label: 禁止注册
|
||||
value: "false"
|
||||
24
apps/kotatsu/20251107/docker-compose.yml
Normal file
24
apps/kotatsu/20251107/docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
kotatsu-syncserver:
|
||||
image: ghcr.io/pooneyy/kotatsu-syncserver:20251107
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- JWT_SECRET=${JWT_SECRET}
|
||||
- DATABASE_HOST=${DATABASE_HOST}
|
||||
- DATABASE_PORT=${DATABASE_PORT}
|
||||
- DATABASE_NAME=${DATABASE_NAME}
|
||||
- DATABASE_USER=${DATABASE_USER}
|
||||
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
|
||||
- ALLOW_NEW_REGISTER=${ALLOW_NEW_REGISTER}
|
||||
Reference in New Issue
Block a user