diff --git a/.gitignore b/.gitignore index 79fc88f..aafd154 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,9 @@ internal/shared/pdf/fonts/*.ttf internal/shared/pdf/fonts/*.ttc internal/shared/pdf/fonts/*.otf +# Pure Component 目录(用于持久化存储,不进行版本控制) +resources/Pure_Component/ + # 其他 *.exe *.dll diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index c0ff012..813358e 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -20,7 +20,8 @@ services: networks: - tyapi-network 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 timeout: 10s retries: 5 @@ -88,6 +89,7 @@ services: - "25000:8080" volumes: - ./logs:/app/logs + - ./resources/Pure_Component:/app/resources/Pure_Component # user: "1001:1001" # 注释掉,使用root权限运行 networks: - tyapi-network @@ -169,7 +171,15 @@ services: redis: condition: service_healthy 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 timeout: 10s retries: 5 @@ -189,6 +199,8 @@ volumes: driver: local redis_data: driver: local + pure_component: + driver: local networks: tyapi-network: