This commit is contained in:
@@ -16,6 +16,10 @@ jobs:
|
||||
run: |
|
||||
python3 --version
|
||||
pip3 --version
|
||||
- name: 确保基础镜像已拉取
|
||||
run: |
|
||||
docker pull python:3.11-slim || true
|
||||
docker pull postgres:16 || true
|
||||
|
||||
- name: 构建并启动前后端服务(环境变量注入)
|
||||
env:
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
@@ -12,7 +10,7 @@ services:
|
||||
networks:
|
||||
- ai-network
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user