修复Docker端口冲突为5433,添加.env配置,后端启动并通过健康检查

This commit is contained in:
yml2213
2026-07-14 11:27:33 +08:00
parent 5820665b85
commit a0ced7bdde
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
version: '3.8'
services: services:
postgres: postgres:
image: postgres:16-alpine image: postgres:16-alpine
@@ -8,7 +7,7 @@ services:
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_DB: kefu_sys POSTGRES_DB: kefu_sys
ports: ports:
- "5432:5432" - "5433:5432"
volumes: volumes:
- pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
+1 -1
View File
@@ -2,7 +2,7 @@ SERVER_PORT=8080
GIN_MODE=debug GIN_MODE=debug
DB_HOST=localhost DB_HOST=localhost
DB_PORT=5432 DB_PORT=5433
DB_USER=postgres DB_USER=postgres
DB_PASSWORD=postgres DB_PASSWORD=postgres
DB_NAME=kefu_sys DB_NAME=kefu_sys