This commit is contained in:
2025-12-19 18:13:31 +08:00
parent e96653751d
commit 8dd6f71baf
2 changed files with 17 additions and 2 deletions

3
.gitignore vendored
View File

@@ -40,6 +40,9 @@ internal/shared/pdf/fonts/*.ttf
internal/shared/pdf/fonts/*.ttc internal/shared/pdf/fonts/*.ttc
internal/shared/pdf/fonts/*.otf internal/shared/pdf/fonts/*.otf
# Pure Component 目录(用于持久化存储,不进行版本控制)
resources/Pure_Component/
# 其他 # 其他
*.exe *.exe
*.dll *.dll

View File

@@ -20,7 +20,8 @@ services:
networks: networks:
- tyapi-network - tyapi-network
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U tyapi_user -d tyapi -h localhost"] test:
["CMD-SHELL", "pg_isready -U tyapi_user -d tyapi -h localhost"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 5 retries: 5
@@ -88,6 +89,7 @@ services:
- "25000:8080" - "25000:8080"
volumes: volumes:
- ./logs:/app/logs - ./logs:/app/logs
- ./resources/Pure_Component:/app/resources/Pure_Component
# user: "1001:1001" # 注释掉使用root权限运行 # user: "1001:1001" # 注释掉使用root权限运行
networks: networks:
- tyapi-network - tyapi-network
@@ -169,7 +171,15 @@ services:
redis: redis:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"] test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8080/health",
]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 5 retries: 5
@@ -189,6 +199,8 @@ volumes:
driver: local driver: local
redis_data: redis_data:
driver: local driver: local
pure_component:
driver: local
networks: networks:
tyapi-network: tyapi-network: