Skip to content

Commit

Permalink
Merge pull request #1186 from AppFlowy-IO/add-curl-for-gotrue-image
Browse files Browse the repository at this point in the history
chore: add curl for gotrue image for better healthcheck
  • Loading branch information
khorshuheng authored Jan 22, 2025
2 parents a133a33 + 682d5ea commit 626c8a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}" ]
interval: 5s
timeout: 5s
retries: 6
retries: 12
volumes:
- ./migrations/before:/docker-entrypoint-initdb.d
- postgres_data:/var/lib/postgresql/data
Expand Down Expand Up @@ -144,6 +144,9 @@ services:
args:
FEATURES: ""
image: appflowyinc/appflowy_cloud:${APPFLOWY_CLOUD_VERSION:-latest}
depends_on:
gotrue:
condition: service_healthy

admin_frontend:
restart: on-failure
Expand All @@ -156,6 +159,9 @@ services:
- ADMIN_FRONTEND_REDIS_URL=${ADMIN_FRONTEND_REDIS_URL:-redis://redis:6379}
- ADMIN_FRONTEND_GOTRUE_URL=${ADMIN_FRONTEND_GOTRUE_URL:-http://gotrue:9999}
- ADMIN_FRONTEND_APPFLOWY_CLOUD_URL=${ADMIN_FRONTEND_APPFLOWY_CLOUD_URL:-http://appflowy_cloud:8000}
depends_on:
appflowy_cloud:
condition: service_started

ai:
restart: on-failure
Expand All @@ -165,6 +171,9 @@ services:
- APPFLOWY_AI_SERVER_PORT=${AI_SERVER_PORT}
- APPFLOWY_AI_DATABASE_URL=${AI_DATABASE_URL}
- APPFLOWY_AI_REDIS_URL=${AI_REDIS_URL}
depends_on:
postgres:
condition: service_healthy

appflowy_worker:
restart: on-failure
Expand All @@ -190,6 +199,9 @@ services:
- APPFLOWY_MAILER_SMTP_USERNAME=${APPFLOWY_MAILER_SMTP_USERNAME}
- APPFLOWY_MAILER_SMTP_EMAIL=${APPFLOWY_MAILER_SMTP_EMAIL}
- APPFLOWY_MAILER_SMTP_PASSWORD=${APPFLOWY_MAILER_SMTP_PASSWORD}
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_data:
minio_data:
2 changes: 1 addition & 1 deletion docker/gotrue/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN rm /go/src/supabase/auth/migrations/20240612123726_enable_rls_update_grants.
FROM alpine:3.20
RUN adduser -D -u 1000 supabase

RUN apk add --no-cache ca-certificates
RUN apk add --no-cache ca-certificates curl
USER supabase

COPY --from=base /auth .
Expand Down

0 comments on commit 626c8a5

Please sign in to comment.