Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

depends_on not woring in v4 l337 service #83

Open
kinglouie opened this issue Nov 30, 2024 · 0 comments
Open

depends_on not woring in v4 l337 service #83

kinglouie opened this issue Nov 30, 2024 · 0 comments

Comments

@kinglouie
Copy link

kinglouie commented Nov 30, 2024

I tried running the custom zitadel docker image ghcr.io/zitadel/zitadel:latest alongside the lando postgres plugin.
The zitadel container should only start when the postgres server is ready, so i added the db container to the depends_on key with condition: service_healthy. On lando start lando errors with container sso_db-sso_1 has no healthcheck configured although the postgres plugin has a healthcheck configured.

This is my complete lando.yml

name: sso

services:
  db-sso:
    type: postgres:16
    portforward: true

  sso:
    api: 4
    type: l337
    image: "ghcr.io/zitadel/zitadel:latest"
    command: 'start-from-init --masterkey "MasterkeyNeedsToHave32Characters" --tlsMode disabled'
    ports:
      - 80/http
    environment:
      ZITADEL_DATABASE_POSTGRES_HOST: db-sso
      ZITADEL_DATABASE_POSTGRES_PORT: 5432
      ZITADEL_DATABASE_POSTGRES_DATABASE: database
      ZITADEL_DATABASE_POSTGRES_USER_USERNAME: zitadel
      ZITADEL_DATABASE_POSTGRES_USER_PASSWORD: zitadel
      ZITADEL_DATABASE_POSTGRES_USER_SSL_MODE: disable
      ZITADEL_DATABASE_POSTGRES_ADMIN_USERNAME: postgres
      ZITADEL_DATABASE_POSTGRES_ADMIN_PASSWORD:
      ZITADEL_DATABASE_POSTGRES_ADMIN_SSL_MODE: disable
      ZITADEL_EXTERNALPORT: 80
      ZITADEL_PORT: 80
      ZITADEL_EXTERNALSECURE: false
      ZITADEL_TLS_ENABLED: false
      ZITADEL_EXTERNALDOMAIN: sso.lndo.site
    depends_on:
      db-sso:
        condition: service_healthy

proxy:
  sso:
    - hostname: sso.lndo.site

how can I ensure that db is ready for custom services?

Lando version: v3.23.14

@rtfm-47 rtfm-47 transferred this issue from lando/lando Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants