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

fix: Adding OTEL_EXPORTER_OTLP_ENDPOINT #189

Merged
merged 19 commits into from
Nov 9, 2024
Merged
Prev Previous commit
Next Next commit
adding in the docker-compose
  • Loading branch information
zacharyblasczyk committed Nov 8, 2024
commit c6ffb71808d54b4a36730a4a6e82e8b5e68592aa
22 changes: 16 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ services:

migrations:
platform: linux/amd64
image: ctrlplane/migrations:eccfca2
image: ctrlplane/migrations:75685e0
container_name: ctrlplane-migrations
restart: "no"
environment:
@@ -36,25 +36,35 @@ services:

webservice:
platform: linux/amd64
image: ctrlplane/webservice:6593512
image: ctrlplane/webservice:75685e0
# build:
# context: .
# dockerfile: ./apps/webservice/Dockerfile

container_name: ctrlplane-webservice
# command: sleep infinity
# command: node apps/webservice/server.js
environment:
BASE_URL: "http://127.0.0.1" # <set your instance url>
AUTH_SECRET: "<auth-secret>"
# AUTH_OIDC_ISSUER: "<oidc-issuer>"
# AUTH_OIDC_CLIENT_ID: "<oidc-client-id>"
# AUTH_OIDC_CLIENT_SECRET: "<oidc-client-secret>"

# AUTH_GOOGLE_CLIENT_ID: <>
# AUTH_GOOGLE_CLIENT_SECRET: <>

NEXTAUTH_URL: ${BASE_URL}
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4318"
REDIS_URL: redis://redis:6379
POSTGRES_URL: postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane
POSTGRES_URL: postgresql://ctrlplane:ctrlplane@postgres:5432/ctrlplane
VARIABLES_AES_256_KEY: d2506d733ee210078461c08ee8e1605be75ed73b0941d4b513ab7b159c6fbcd9
# NODE_OPTIONS: "--require /app/apps/webservice/.next/serverinstrumentation.js"
# NODE_PATH: /app/apps/webservice/node_modules/
# NEXT_RUNTIME: nodejs
# OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: "http/protobuf"
# NODE_OPTIONS: "--require=@opentelemetry/instrumentation-pg"
# NEXT_OTEL_VERBOSE: 1
# OTEL_LOG_LEVEL: debug
depends_on:
- postgres
- migrations
@@ -63,7 +73,7 @@ services:

jobs:
platform: linux/amd64
image: ctrlplane/jobs:eccfca2
image: ctrlplane/jobs:75685e0
container_name: ctrlplane-jobs
environment:
POSTGRES_URL: "postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane"
@@ -74,7 +84,7 @@ services:

event-worker:
platform: linux/amd64
image: ctrlplane/event-worker:eccfca2
image: ctrlplane/event-worker:75685e0
container_name: ctrlplane-event-worker
environment:
POSTGRES_URL: "postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane"