修复Docker端口冲突为5433,添加.env配置,后端启动并通过健康检查
This commit is contained in:
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user