Skip to content

Commit

Permalink
add flagd service to minimal docker compose (#1585)
Browse files Browse the repository at this point in the history
* add flagd service to minimal docker compose

* chore: add changelog entry

---------

Co-authored-by: Pierre Tessier <[email protected]>
  • Loading branch information
rogercoll and puckpuck authored Jun 1, 2024
1 parent 925ddee commit 3ee280d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ the release.
([#1514](https://github.com/open-telemetry/opentelemetry-demo/pull/1514)), ([#1580](https://github.com/open-telemetry/opentelemetry-demo/pull/1580))
* [kafka] Fix permission issue with the telemetry agent when running in docker compose
([#1574](https://github.com/open-telemetry/opentelemetry-demo/pull/1574))
* [flagd] Add flagd service to minimal docker compose deployment
([#1585](https://github.com/open-telemetry/opentelemetry-demo/pull/1585))

## 1.9.0

Expand Down
31 changes: 28 additions & 3 deletions docker-compose.minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,21 +252,21 @@ services:
environment:
- FRONTEND_PORT
- FRONTEND_HOST
- FEATURE_FLAG_SERVICE_PORT
- FEATURE_FLAG_SERVICE_HOST
- LOCUST_WEB_HOST
- LOCUST_WEB_PORT
- GRAFANA_SERVICE_PORT
- GRAFANA_SERVICE_HOST
- JAEGER_SERVICE_PORT
- JAEGER_SERVICE_HOST
- OTEL_COLLECTOR_HOST
- IMAGE_PROVIDER_HOST
- IMAGE_PROVIDER_PORT
- OTEL_COLLECTOR_HOST
- OTEL_COLLECTOR_PORT_GRPC
- OTEL_COLLECTOR_PORT_HTTP
- OTEL_RESOURCE_ATTRIBUTES
- ENVOY_PORT
- FLAGD_HOST
- FLAGD_PORT
depends_on:
frontend:
condition: service_started
Expand Down Expand Up @@ -503,6 +503,31 @@ services:
- "${REDIS_PORT}"
logging: *logging

# Flagd, feature flagging service
flagd:
image: ghcr.io/open-feature/flagd:v0.10.1
container_name: flagd
deploy:
resources:
limits:
memory: 50M
environment:
- FLAGD_OTEL_COLLECTOR_URI=${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_GRPC}
- FLAGD_METRICS_EXPORTER=otel
- OTEL_RESOURCE_ATTRIBUTES
- OTEL_SERVICE_NAME=flagd
command: [
"start",
"--uri",
"file:./etc/flagd/demo.flagd.json"
]
ports:
- 8013
volumes:
- ./src/flagd:/etc/flagd
logging:
*logging


# ********************
# Telemetry Components
Expand Down

0 comments on commit 3ee280d

Please sign in to comment.