diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 46c8253..b37a2b1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -45,8 +45,9 @@ jobs: env: NODE_ENV: test LOG_LEVEL: error - DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/lingxi_test?schema=public - REDIS_URL: redis://127.0.0.1:6379 + # job 运行在容器里:service 容器用 : 访问,不能用 127.0.0.1。 + DATABASE_URL: postgresql://postgres:postgres@postgres:5432/lingxi_test?schema=public + REDIS_URL: redis://redis:6379 JWT_ACCESS_SECRET: ci-only-access-secret-at-least-32-chars JWT_REFRESH_SECRET: ci-only-refresh-secret-at-least-32-chars WEB_ORIGIN: http://127.0.0.1:4173