This commit is contained in:
2026-01-30 16:59:11 +08:00
parent 4609219a4d
commit 61c87e40fb
4 changed files with 93 additions and 93 deletions

View File

@@ -1,9 +1,9 @@
Name: main Name: main
Host: 0.0.0.0 Host: 0.0.0.0
Port: 8888 Port: 8888
DataSource: "tyass:5vg67b3UNHu8@tcp(127.0.0.1:21001)/tyass?charset=utf8mb4&parseTime=True&loc=Local" DataSource: "tyass:5vg67b3UNHu8@tcp(127.0.0.1:27101)/tyass?charset=utf8mb4&parseTime=True&loc=Local"
CacheRedis: CacheRedis:
- Host: "127.0.0.1:21002" - Host: "127.0.0.1:27102"
Pass: "3m3WsgyCKWqz" # Redis 密码,如果未设置则留空 Pass: "3m3WsgyCKWqz" # Redis 密码,如果未设置则留空
Type: "node" # 单节点模式 Type: "node" # 单节点模式
JwtAuth: JwtAuth:

View File

@@ -1,7 +1,7 @@
# 设置输出编码为UTF-8 # 设置输出编码为UTF-8
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
# 数据库连接信息 - 修改了URL格式 # 数据库连接信息 - 修改了URL格式
$DB_URL = "tyass:5vg67b3UNHu8@(127.0.0.1:21001)/tyass" $DB_URL = "tyass:5vg67b3UNHu8@(127.0.0.1:27101)/tyass"
$OUTPUT_DIR = "./model" $OUTPUT_DIR = "./model"
$TEMPLATE_DIR = "../template" $TEMPLATE_DIR = "../template"

View File

@@ -11,13 +11,13 @@ services:
MYSQL_USER: tyass MYSQL_USER: tyass
MYSQL_PASSWORD: 5vg67b3UNHu8 MYSQL_PASSWORD: 5vg67b3UNHu8
ports: ports:
- "21001:3306" - "27101:3306"
volumes: volumes:
# 数据挂载 - Data mounting # 数据挂载 - Data mounting
- ./data/mysql/data:/var/lib/mysql - ./data/mysql/data:/var/lib/mysql
# 日志 # 日志
command: command:
# 将mysql8.0默认密码策略 修改为 原先 策略 (mysql8.0对其默认策略做了更改 会导致密码无法匹配) # 将mysql8.0默认密码策略 修改为 原先 策略 (mysql8.0对其默认策略做了更改 会导致密码无法匹配)
# Modify the Mysql 8.0 default password strategy to the original strategy (MySQL8.0 to change its default strategy will cause the password to be unable to match) # Modify the Mysql 8.0 default password strategy to the original strategy (MySQL8.0 to change its default strategy will cause the password to be unable to match)
--default-authentication-plugin=mysql_native_password --default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4 --character-set-server=utf8mb4
@@ -32,7 +32,7 @@ services:
image: redis:7.4.0 image: redis:7.4.0
container_name: tyass_redis container_name: tyass_redis
ports: ports:
- "21002:6379" - "27102:6379"
environment: environment:
# 时区上海 - Time zone Shanghai (Change if needed) # 时区上海 - Time zone Shanghai (Change if needed)
TZ: Asia/Shanghai TZ: Asia/Shanghai
@@ -49,12 +49,12 @@ services:
image: hibiken/asynqmon:latest image: hibiken/asynqmon:latest
container_name: tyass_asynqmon container_name: tyass_asynqmon
ports: ports:
- "21003:8080" - "27103:8080"
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
command: command:
- '--redis-addr=tyass_redis:6379' - "--redis-addr=tyass_redis:6379"
- '--redis-password=3m3WsgyCKWqz' - "--redis-password=3m3WsgyCKWqz"
restart: always restart: always
networks: networks:
- tyass_net - tyass_net
@@ -71,7 +71,7 @@ services:
PMA_USER: tyass PMA_USER: tyass
PMA_PASSWORD: 5vg67b3UNHu8 PMA_PASSWORD: 5vg67b3UNHu8
ports: ports:
- "21004:80" - "27104:80"
depends_on: depends_on:
- mysql - mysql
networks: networks:

View File

@@ -1,91 +1,91 @@
version: "3" version: "3"
services: services:
mysql: mysql:
image: mysql:8.0.34 image: mysql:8.0.34
container_name: tyass_mysql container_name: tyass_mysql
environment: environment:
# 时区上海 - Time zone Shanghai (Change if needed) # 时区上海 - Time zone Shanghai (Change if needed)
TZ: Asia/Shanghai TZ: Asia/Shanghai
# root 密码 - root password # root 密码 - root password
MYSQL_ROOT_PASSWORD: yfg87gyuYiy1 MYSQL_ROOT_PASSWORD: yfg87gyuYiy1
MYSQL_DATABASE: tyass MYSQL_DATABASE: tyass
MYSQL_USER: tyass MYSQL_USER: tyass
MYSQL_PASSWORD: 5vg67b3UNHu8 MYSQL_PASSWORD: 5vg67b3UNHu8
ports: ports:
- "21001:3306" - "27101:3306"
volumes: volumes:
# 数据挂载 - Data mounting # 数据挂载 - Data mounting
- ./data/mysql/data:/var/lib/mysql - ./data/mysql/data:/var/lib/mysql
# 日志 # 日志
command: command:
# 将mysql8.0默认密码策略 修改为 原先 策略 (mysql8.0对其默认策略做了更改 会导致密码无法匹配) # 将mysql8.0默认密码策略 修改为 原先 策略 (mysql8.0对其默认策略做了更改 会导致密码无法匹配)
# Modify the Mysql 8.0 default password strategy to the original strategy (MySQL8.0 to change its default strategy will cause the password to be unable to match) # Modify the Mysql 8.0 default password strategy to the original strategy (MySQL8.0 to change its default strategy will cause the password to be unable to match)
--default-authentication-plugin=mysql_native_password --default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4 --character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci --collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true --explicit_defaults_for_timestamp=true
--lower_case_table_names=1 --lower_case_table_names=1
privileged: true privileged: true
restart: always restart: always
networks: networks:
- tyass_net - tyass_net
- 1panel-network - 1panel-network
redis: redis:
image: redis:7.4.0 image: redis:7.4.0
container_name: tyass_redis container_name: tyass_redis
ports: ports:
- "21002:6379" - "27102:6379"
environment: environment:
# 时区上海 - Time zone Shanghai (Change if needed) # 时区上海 - Time zone Shanghai (Change if needed)
TZ: Asia/Shanghai TZ: Asia/Shanghai
volumes: volumes:
# 数据文件 - data files # 数据文件 - data files
- ./data/redis/data:/data:rw - ./data/redis/data:/data:rw
command: "redis-server --requirepass 3m3WsgyCKWqz --appendonly yes" command: "redis-server --requirepass 3m3WsgyCKWqz --appendonly yes"
privileged: true privileged: true
restart: always restart: always
networks: networks:
- tyass_net - tyass_net
asynqmon: asynqmon:
image: hibiken/asynqmon:latest image: hibiken/asynqmon:latest
container_name: tyass_asynqmon container_name: tyass_asynqmon
ports: ports:
- "21003:8080" - "27103:8080"
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
command: command:
- "--redis-addr=tyass_redis:6379" - "--redis-addr=tyass_redis:6379"
- "--redis-password=3m3WsgyCKWqz" - "--redis-password=3m3WsgyCKWqz"
restart: always restart: always
networks: networks:
- tyass_net - tyass_net
depends_on: depends_on:
- redis - redis
main: main:
container_name: tyass_main container_name: tyass_main
build: build:
context: . context: .
dockerfile: app/main/api/Dockerfile dockerfile: app/main/api/Dockerfile
ports: ports:
- "21004:8888" - "27104:8888"
volumes: volumes:
- ./data/authorization_docs:/app/data/authorization_docs:rw - ./data/authorization_docs:/app/data/authorization_docs:rw
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
- ENV=production - ENV=production
depends_on: depends_on:
- mysql - mysql
- redis - redis
networks: networks:
- tyass_net - tyass_net
restart: always restart: always
networks: networks:
tyass_net: tyass_net:
driver: bridge driver: bridge
1panel-network: 1panel-network:
external: true external: true