-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: broken trigger.dev templates #4724
base: next
Are you sure you want to change the base?
Changes from all commits
cf361e0
5fcf3aa
87d3241
f0ea389
fe2d070
350fd52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,9 @@ x-common-env: &common-env | |
POSTGRES_USER: $SERVICE_USER_POSTGRES | ||
POSTGRES_PASSWORD: $SERVICE_PASSWORD_POSTGRES | ||
POSTGRES_DB: ${POSTGRES_DB:-trigger} | ||
MAGIC_LINK_SECRET: $SERVICE_PASSWORD_64_MAGIC | ||
SESSION_SECRET: $SERVICE_PASSWORD_64_SESSION | ||
ENCRYPTION_KEY: $SERVICE_PASSWORD_64_ENCRYPTION | ||
MAGIC_LINK_SECRET: $SERVICE_PASSWORD_32_MAGIC | ||
SESSION_SECRET: $SERVICE_PASSWORD_32_SESSION | ||
ENCRYPTION_KEY: $SERVICE_PASSWORD_32_ENCRYPTION | ||
PROVIDER_SECRET: $SERVICE_PASSWORD_64_PROVIDER | ||
COORDINATOR_SECRET: $SERVICE_PASSWORD_64_COORDINATOR | ||
DATABASE_HOST: postgresql:5432 | ||
|
@@ -43,7 +43,7 @@ x-common-env: &common-env | |
LOGIN_ORIGIN: $SERVICE_FQDN_TRIGGER_3000 | ||
APP_ORIGIN: $SERVICE_FQDN_TRIGGER_3000 | ||
DEV_OTEL_EXPORTER_OTLP_ENDPOINT: $SERVICE_FQDN_TRIGGER_3000/otel | ||
OTEL_EXPORTER_OTLP_ENDPOINT: "http://trigger:3040/otel" | ||
OTEL_EXPORTER_OTLP_ENDPOINT: $SERVICE_FQDN_TRIGGER_3000/otel | ||
ELECTRIC_ORIGIN: http://electric:3000 | ||
|
||
services: | ||
|
@@ -119,13 +119,16 @@ services: | |
PLATFORM_HOST: trigger | ||
PLATFORM_WS_PORT: 3000 | ||
SECURE_CONNECTION: "false" | ||
PLATFORM_SECRET: $PROVIDER_SECRET | ||
PLATFORM_SECRET: $SERVICE_PASSWORD_64_PROVIDER | ||
HTTP_SERVER_PORT: 9020 | ||
coordinator: | ||
image: ghcr.io/triggerdotdev/coordinator:v3 | ||
platform: linux/amd64 | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
user: root | ||
ports: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not add port mappings as this is insecure. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's specific to tigger.dev. I can change it to bind only 127.0.0.1 to smthing like:
will it help? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed it to restrict the port to only the host machine. |
||
- '127.0.0.1:9020:9020' | ||
depends_on: | ||
trigger: | ||
condition: service_healthy | ||
|
@@ -134,7 +137,8 @@ services: | |
PLATFORM_HOST: trigger | ||
PLATFORM_WS_PORT: 3000 | ||
SECURE_CONNECTION: "false" | ||
PLATFORM_SECRET: $COORDINATOR_SECRET | ||
PLATFORM_SECRET: $SERVICE_PASSWORD_64_COORDINATOR | ||
HTTP_SERVER_PORT: 9020 | ||
healthcheck: | ||
test: | ||
- CMD-SHELL | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this change it will not work properly.
You can check config - 3040 is unused port. Probably earlier smbody changed
DEV_OTEL_EXPORTER_OTLP_ENDPOINT
to the right one, but forgot aboutOTEL_EXPORTER_OTLP_ENDPOINT