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

[WIP] Add Docker Compose server examples #939

Merged
merged 7 commits into from
Aug 7, 2024

Conversation

Snarr
Copy link
Member

@Snarr Snarr commented Aug 3, 2024

Adds Docker Compose examples for the following LittleHorse Orchestrator use cases:

  • 3 server cluster
  • Authentication with OAuth
  • Authentication with mTLS
  • Using Keycloak iDP
    And more.

@Snarr Snarr added the documentation Improvements or additions to documentation label Aug 3, 2024
@Snarr Snarr self-assigned this Aug 3, 2024
services:
kafka:
container_name: lh-kafka
image: bitnami/kafka:3.5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just use the apache/kafka:3.8.0 one since it's now an official image, and it also means you don't need to configure any environment variables.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until now I didn't realize the full extent of what an Apache Kafka image release meant. Cool that they are releasing their own images now with built in env configurations!

- Remove CFG from env var names, was supported by Bitnami image but not Apache
- Remove ENABLE_KRAFT env var, KRaft is default and ZooKeeper deprecated after 3.5.0
@coltmcnealy-lh
Copy link
Member

coltmcnealy-lh commented Aug 4, 2024

We will want to put this in the docs/docs/operations folder so that it shows up on our website rather than just in the examples space. I'm thinking we should have inside the "operations" tab on our website a "docker compose" tab, which has a few examples.

This can be the Basic one. We should also have some others:

  • OAuth with Keycloak
  • Using Confluent Cloud
  • TLS
  • mTLS

Each file should also have tutorials for connecting with lhctl and also a Task Worker in Java/Go/Python.

Another interesting example we can add (in addition to the four listed above) is one that has a worker running inside the docker compose on the same network. We'll then have to configure two listeners on the LH Server: 1) inside the docker compose network, 2) outside the docker compose network. I think that would be helpful for people to understand how everything works.

@coltmcnealy-lh coltmcnealy-lh marked this pull request as ready for review August 7, 2024 17:59
@coltmcnealy-lh coltmcnealy-lh merged commit 08d444f into master Aug 7, 2024
15 checks passed
@coltmcnealy-lh coltmcnealy-lh deleted the docs/add-docker-compose-examples branch August 7, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants