Merge pull request #12732 from appwrite/mongo-healthcheck

Mongo healthcheck start_period
This commit is contained in:
Jake Barnby authored and GitHub committed 2026-07-01 01:06:14 +12:00
commit 8945fef1a7
2 files changed
+66 -6

No files matched your search

+65 -5
View File
@@ -306,7 +306,19 @@ jobs:
- name: Load and Start Appwrite
timeout-minutes: 5
run: |
docker compose pull --quiet --ignore-buildable
# Docker Hub registry timeouts are a common transient CI failure
# (e.g. a traefik manifest fetch timing out). Retry the image pull;
# keep `up` single-shot so genuine container health failures still surface.
for attempt in 1 2 3; do
if docker compose pull --quiet --ignore-buildable; then
break
elif [ "$attempt" -eq 3 ]; then
echo "::error::docker compose pull failed after 3 attempts; aborting"
exit 1
fi
echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s"
sleep 15
done
docker compose up -d --quiet-pull --wait
- name: Environment Variables
@@ -353,7 +365,19 @@ jobs:
- name: Load and Start Appwrite
timeout-minutes: 5
run: |
docker compose pull --quiet --ignore-buildable
# Docker Hub registry timeouts are a common transient CI failure
# (e.g. a traefik manifest fetch timing out). Retry the image pull;
# keep `up` single-shot so genuine container health failures still surface.
for attempt in 1 2 3; do
if docker compose pull --quiet --ignore-buildable; then
break
elif [ "$attempt" -eq 3 ]; then
echo "::error::docker compose pull failed after 3 attempts; aborting"
exit 1
fi
echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s"
sleep 15
done
docker compose up -d --quiet-pull --wait
- name: Wait for Open Runtimes
@@ -443,7 +467,19 @@ jobs:
_APP_DATABASE_DOCUMENTSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'documentsdb_db_main' || '' }}
_APP_DATABASE_VECTORSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'vectorsdb_db_main' || '' }}
run: |
docker compose pull --quiet --ignore-buildable
# Docker Hub registry timeouts are a common transient CI failure
# (e.g. a traefik manifest fetch timing out). Retry the image pull;
# keep `up` single-shot so genuine container health failures still surface.
for attempt in 1 2 3; do
if docker compose pull --quiet --ignore-buildable; then
break
elif [ "$attempt" -eq 3 ]; then
echo "::error::docker compose pull failed after 3 attempts; aborting"
exit 1
fi
echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s"
sleep 15
done
docker compose up -d --quiet-pull --wait
- name: Wait for Open Runtimes
@@ -526,7 +562,19 @@ jobs:
_APP_DATABASE_DOCUMENTSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'documentsdb_db_main' || '' }}
_APP_DATABASE_VECTORSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'vectorsdb_db_main' || '' }}
run: |
docker compose pull --quiet --ignore-buildable
# Docker Hub registry timeouts are a common transient CI failure
# (e.g. a traefik manifest fetch timing out). Retry the image pull;
# keep `up` single-shot so genuine container health failures still surface.
for attempt in 1 2 3; do
if docker compose pull --quiet --ignore-buildable; then
break
elif [ "$attempt" -eq 3 ]; then
echo "::error::docker compose pull failed after 3 attempts; aborting"
exit 1
fi
echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s"
sleep 15
done
docker compose up -d --quiet-pull --wait
- name: Run tests
@@ -584,7 +632,19 @@ jobs:
_APP_DATABASE_DOCUMENTSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'documentsdb_db_main' || '' }}
_APP_DATABASE_VECTORSDB_SHARED_TABLES: ${{ matrix.mode != 'dedicated' && 'vectorsdb_db_main' || '' }}
run: |
docker compose pull --quiet --ignore-buildable
# Docker Hub registry timeouts are a common transient CI failure
# (e.g. a traefik manifest fetch timing out). Retry the image pull;
# keep `up` single-shot so genuine container health failures still surface.
for attempt in 1 2 3; do
if docker compose pull --quiet --ignore-buildable; then
break
elif [ "$attempt" -eq 3 ]; then
echo "::error::docker compose pull failed after 3 attempts; aborting"
exit 1
fi
echo "::warning::docker compose pull failed (attempt ${attempt}/3); retrying in 15s"
sleep 15
done
docker compose up -d --quiet-pull --wait
- name: Wait for Open Runtimes
+1 -1
View File
@@ -1326,7 +1326,7 @@ services:
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
start_period: 60s
postgresql:
image: appwrite/postgres:0.1.0
container_name: appwrite-postgresql