chore: 优化authserver代码

This commit is contained in:
2025-10-25 14:39:24 +08:00
parent 0f55e2e108
commit a695a21bcb
12 changed files with 115 additions and 52 deletions

View File

@ -1,7 +1,7 @@
services:
internalgateways:
container_name: clean-internalgateways
restart: always
restart: unless-stopped
build:
context: .
dockerfile: ./gateways/KonSoft.InternalGateway/Dockerfile
@ -15,10 +15,21 @@ services:
- 8080:8080
networks:
- konsoft-shared-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
authserver:
container_name: clean-authserver
restart: always
restart: unless-stopped
build:
context: .
dockerfile: ./applications/KonSoft.AuthServer/Dockerfile
@ -30,12 +41,25 @@ services:
- AgileConfig__Secret=DBE31703-14F9-4B01-893D-900B8380CE04
ports:
- 8081:8081
volumes:
- /root/openiddict.pfx:/app/openiddict.pfx:ro
networks:
- konsoft-shared-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
adminservice:
container_name: clean-adminservice
restart: always
restart: unless-stopped
build:
context: .
dockerfile: ./microservices/KonSoft.Admin.HttpApi.Host/Dockerfile
@ -47,6 +71,17 @@ services:
- AgileConfig__Secret=DBE31703-14F9-4B01-893D-900B8380CE04
networks:
- konsoft-shared-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
konsoft-shared-network: