ci: Add condition service_healthy check for app to mcp containers
This commit is contained in:
@@ -81,4 +81,4 @@ jobs:
|
|||||||
NEXTCLOUD_USERNAME: "admin"
|
NEXTCLOUD_USERNAME: "admin"
|
||||||
NEXTCLOUD_PASSWORD: "admin"
|
NEXTCLOUD_PASSWORD: "admin"
|
||||||
run: |
|
run: |
|
||||||
uv run pytest -v --log-cli-level=INFO
|
uv run pytest -v --log-cli-level=WARN
|
||||||
|
|||||||
+9
-7
@@ -43,11 +43,11 @@ services:
|
|||||||
- MYSQL_USER=nextcloud
|
- MYSQL_USER=nextcloud
|
||||||
- MYSQL_HOST=db
|
- MYSQL_HOST=db
|
||||||
- REDIS_HOST=redis
|
- REDIS_HOST=redis
|
||||||
#healthcheck:
|
healthcheck:
|
||||||
#test: ["CMD-SHELL", "curl -Ss http://localhost/status.php | grep '\"installed\":true' || exit 1"]
|
test: ["CMD-SHELL", "curl -Ss http://localhost/status.php | grep '\"installed\":true' || exit 1"]
|
||||||
#interval: 10s
|
interval: 10s
|
||||||
#timeout: 30s
|
timeout: 30s
|
||||||
#retries: 30
|
retries: 30
|
||||||
|
|
||||||
recipes:
|
recipes:
|
||||||
image: docker.io/library/nginx:alpine@sha256:b3c656d55d7ad751196f21b7fd2e8d4da9cb430e32f646adcf92441b72f82b14
|
image: docker.io/library/nginx:alpine@sha256:b3c656d55d7ad751196f21b7fd2e8d4da9cb430e32f646adcf92441b72f82b14
|
||||||
@@ -71,7 +71,8 @@ services:
|
|||||||
command: ["--transport", "streamable-http"]
|
command: ["--transport", "streamable-http"]
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
app:
|
||||||
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:8000:8000
|
- 127.0.0.1:8000:8000
|
||||||
environment:
|
environment:
|
||||||
@@ -84,7 +85,8 @@ services:
|
|||||||
command: ["--transport", "streamable-http", "--oauth", "--port", "8001", "--oauth-token-type", "jwt"]
|
command: ["--transport", "streamable-http", "--oauth", "--port", "8001", "--oauth-token-type", "jwt"]
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
app:
|
||||||
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:8001:8001
|
- 127.0.0.1:8001:8001
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Vendored
+1
-1
Submodule third_party/oidc updated: 84f31d302f...ba0c527779
Reference in New Issue
Block a user