Skip to content

Commit ee68a26

Browse files
committed
make worker urls more easily configurable
1 parent 89515e2 commit ee68a26

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

hosting/docker/.env.example

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,25 @@ API_ORIGIN=http://localhost:8030
5252
# - 8GB machine: NODE_MAX_OLD_SPACE_SIZE=6400
5353
# NODE_MAX_OLD_SPACE_SIZE=8192
5454

55+
# Worker
56+
# - These are the settings for the worker and will depend on your setup
57+
# - Any defaults are designed to work out of the box with the combined setup
58+
# Point this at the webapp in prod
59+
# TRIGGER_API_URL=http://webapp:3000
60+
# Point this at your OTel collector or the webapp in prod
61+
# OTEL_EXPORTER_OTLP_ENDPOINT=http://webapp:3000/otel
62+
5563
# Docker Registry
5664
# - When testing locally, the default values should be fine
5765
# - When deploying to production, you will have to change these, especially the password and URL
58-
# - See the docs for more information: https://trigger.dev/docs/self-hosting/docker
66+
# - See the docs for more information: https://trigger.dev/docs/self-hosting/docker#registry-setup
5967
DOCKER_REGISTRY_URL=localhost:5000
6068
DOCKER_REGISTRY_USERNAME=registry-user
6169
DOCKER_REGISTRY_PASSWORD=very-secure-indeed
6270

6371
# Object store
6472
# - You need to log into the Minio dashboard and create a bucket called "packets"
65-
# - See the docs for more information: https://trigger.dev/docs/self-hosting/docker
73+
# - See the docs for more information: https://trigger.dev/docs/self-hosting/docker#object-storage
6674
OBJECT_STORE_ACCESS_KEY_ID=admin
6775
OBJECT_STORE_SECRET_ACCESS_KEY=very-safe-password
6876
# You will have to uncomment and configure this for production

hosting/docker/worker/docker-compose.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ services:
3030
# Use the bootstrap token created by the webapp
3131
TRIGGER_WORKER_TOKEN: file:///home/node/shared/worker_token
3232
MANAGED_WORKER_SECRET: ${MANAGED_WORKER_SECRET}
33-
# Point this at the webapp in prod
34-
TRIGGER_API_URL: http://webapp:3000
35-
# Point this at the OTel collector or the webapp in prod
36-
OTEL_EXPORTER_OTLP_ENDPOINT: http://webapp:3000/otel
33+
TRIGGER_API_URL: ${TRIGGER_API_URL:-http://webapp:3000}
34+
OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://webapp:3000/otel}
3735
TRIGGER_WORKLOAD_API_DOMAIN: supervisor
3836
TRIGGER_WORKLOAD_API_PORT_EXTERNAL: 8020
3937
# Optional settings

0 commit comments

Comments
 (0)