tidy folder

This commit is contained in:
2022-04-27 17:52:02 +08:00
parent 5b489c1325
commit 461e31a6c6
16 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
## Charles License 生成器
[Github地址](https://github.com/malaohu/CharlesLicense)
http://127.0.0.1:8080/charles/keygen/yourname

View File

@@ -0,0 +1,15 @@
version: "3.0"
services:
app:
container_name: charles-license
image: malaohu/charleslicense
ports:
- "8080:8080"
networks:
nginx:
aliases:
- charles
networks:
nginx:
external: true

View File

@@ -0,0 +1,46 @@
version: '3'
services:
aria2:
image: p3terx/aria2-pro
logging:
options:
max-size: 1m
ports:
- 6800:6800
- 6888:6888
- 6888:6888/udp
environment:
- PUID=$UID
- PGID=$GID
- RPC_SECRET=rpc_secret
volumes:
- ./data/aria2/config:/config
- ./data/temp/downloads:/downloads
restart: unless-stopped
networks:
nginx:
aliases:
- aria2
cloudreve:
image: xavierniu/cloudreve
ports:
- 5212:5212
environment:
- PUID=$UID
- PGID=$GID
volumes:
- ./data/cloudreve/uploads:/cloudreve/uploads
- ./data/temp/downloads:/downloads
- ./data/cloudreve/config:/cloudreve/config
- ./data/cloudreve/db:/cloudreve/db
- ./data/cloudreve/avatar:/cloudreve/avatar
networks:
nginx:
aliases:
- cloudreve
networks:
nginx:
external: true

View File

@@ -0,0 +1,9 @@
version: '3.3'
services:
app:
image: indes/flowerss-bot
container_name: "flowerss-bot"
volumes:
- ./data:/root/.flowerss
restart:
unless-stopped

View File

@@ -0,0 +1,17 @@
version: '3.3'
services:
app:
image: hunsh/gh-proxy-py:latest
container_name: "gh-proxy-py"
ports:
- 13001:80
restart:
unless-stopped
networks:
nginx:
aliases:
- gh-proxy-py
networks:
nginx:
external: true

View File

@@ -0,0 +1,39 @@
version: "3"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:1.16.0
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
restart: unless-stopped
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
depends_on:
- db
db:
image: postgres:13
restart: unless-stopped
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
networks:
- gitea
volumes:
- ./postgres:/var/lib/postgresql/data

View File

@@ -0,0 +1,36 @@
version: "3"
services:
database:
image: mysql:5.7
volumes:
- ./data/mysql/conf:/etc/mysql
- ./data/mysql/logs:/var/log/mysql
- ./data/mysql/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_DATABASE=codimd
restart: unless-stopped
networks:
nginx:
aliases:
- mysql
codimd:
image: hackmdio/hackmd:2.4.1
environment:
- CMD_DB_URL=mysql://root:admin@mysql/codimd
- CMD_USECDN=false
depends_on:
- database
ports:
- "3000:3000"
volumes:
- ./data/hackmd:/home/hackmd/app/public/uploads
restart: unless-stopped
networks:
nginx:
aliases:
- hackmd
networks:
nginx:
external: true

View File

@@ -0,0 +1,37 @@
version: "3"
services:
database:
container_name: postgres
image: postgres:13
environment:
- POSTGRES_USER=codimd
- POSTGRES_PASSWORD=change_password
- POSTGRES_DB=codimd
volumes:
- ./data/postgres:/var/lib/postgresql/data
restart: unless-stopped
networks:
nginx:
aliases:
- postgres
codimd:
container_name: hackmd
image: hackmdio/hackmd:2.4.1
environment:
- CMD_DB_URL=postgres://codimd:change_password@postgres/codimd
- CMD_USECDN=false
depends_on:
- database
ports:
- "3000:3000"
volumes:
- ./data/hackmd:/home/hackmd/app/public/uploads
restart: unless-stopped
networks:
nginx:
aliases:
- hackmd
networks:
nginx:
external: true

View File

@@ -0,0 +1,23 @@
version: '3'
services:
minio:
container_name: "minio"
restart: unless-stopped
volumes:
- .\data:/data
environment:
- MINIO_ROOT_USER=username
- MINIO_ROOT_PASSWORD=password
ports:
- 9000:9000
- 9001:9001
image: quay.io/minio/minio
command: server /data --console-address ":9001"
networks:
nginx:
aliases:
- minio
networks:
nginx:
external: true

View File

@@ -0,0 +1,20 @@
version: '3'
services:
nginx-proxy-manager:
container_name: nginx-proxy-manager
restart: unless-stopped
ports:
- "8181:8181" # web
- "81:8080" # http
- "3000:4443" # https
volumes:
- "./config:/config:rw"
image: jlesage/nginx-proxy-manager
networks:
nginx:
aliases:
- nginx
networks:
nginx:
external: true

31
Docker/nsfw.js/README.md Normal file
View File

@@ -0,0 +1,31 @@
# NSFW识别系统
[Docker Hub](https://hub.docker.com/r/eugencepoi/nsfw_api)
## 用例
```shell
# single prediction
curl -X GET -H 'Content-Type: application/json' http://localhost:5000\?url\=https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
{
"score": 0.00016061133646871895,
"url": "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"
}
{
"error_code": 500,
"error_reason": "[Errno -2] Name or service not known",
"url": "https://foobar"
}
# Batch predictions
curl -X POST -H 'Content-Type: application/json' \
-d '{"images": [{"url": "http://foo.bar", "id": 1}, {"url": "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png", "id": 2, "extra_props": {"foo": "bar"}}]}' \
http://localhost:5000/batch-classify
{"predictions": [
{"url": "http://foo.bar", "error_reason": "[Errno -2] Name or service not known", "error_code": 500, "id": 1},
{"url": "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png", "score": 0.00016061133646871895, "id": 2, "extra_props": {"foo": "bar"}}
]}
```

View File

@@ -0,0 +1,17 @@
version: "3.0"
services:
app:
container_name: nsfw-api
image: eugencepoi/nsfw_api:latest
ports:
- "5000:5000"
environment:
- PORT=5000
networks:
nginx:
aliases:
- nsfw_api
networks:
nginx:
external: true

View File

@@ -0,0 +1,15 @@
version: '3'
services:
redis:
container_name: "redis"
restart: unless-stopped
network_mode: "host"
image: redis:5.0.14
networks:
nginx:
aliases:
- redis
networks:
nginx:
external: true

View File

@@ -0,0 +1,41 @@
# https://github.com/typecho/Dockerfile
version: '3'
services:
typecho:
container_name: typecho-server
image: joyqi/typecho:nightly-php7.4-apache
ports:
- 6881:80
environment:
TIMEZONE: Asia/Shanghai
MEMORY_LIMIT: 100M # PHP内存限制
MAX_POST_BODY: 50M
TYPECHO_INSTALL: 1 # 设置为1将运行自动安装脚本
TYPECHO_DB_ADAPTER: Pdo_SQLite # 数据驱动器Pdo_Mysql, Pdo_SQLite, Pdo_Pgsql, Mysqli, SQLite, Pgsql.
# TYPECHO_DB_HOST: host
# TYPECHO_DB_PORT: 3306
# TYPECHO_DB_USER: user
# TYPECHO_DB_PASSWORD: password
# TYPECHO_DB_DATABASE: database
TYPECHO_DB_FILE: /app/usr/typecho.db
TYPECHO_DB_PREFIX: tpyecho_
# TYPECHO_DB_ENGINE: InnoDB # 仅Mysql可用
# TYPECHO_DB_CHARSET: utf8 # default: utf8(for pgsql) or utf8mb4(for mysql)
TYPECHO_DB_NEXT: keep # none keep force
TYPECHO_SITE_URL: http://127.0.0.1:6881
TYPECHO_USER_NAME: username
TYPECHO_USER_PASSWORD: password
TYPECHO_USER_MAIL: admin@localhost.local
volumes:
- ./data:/app/usr
restart: unless-stopped
networks:
nginx:
aliases:
- typecho
networks:
nginx:
external: true

View File

@@ -0,0 +1,18 @@
version: '3'
services:
wbo:
container_name: wbo-boards
restart: unless-stopped
image: lovasoa/wbo:latest
ports:
- "5001:80"
volumes:
- "$PWD/data:/opt/app/server-data"
networks:
nginx:
aliases:
- wbo-boards
networks:
nginx:
external: true