|
1 | | -# YOU MIGHT LIKE TO MODIFY THESE VARIABLES |
2 | | -SESSION_SECRET=abcdef1234 |
3 | | -MAGIC_LINK_SECRET=abcdef1234 |
4 | | -ENCRYPTION_KEY=ae13021afef0819c3a307ad487071c06 # Must be a random 16 byte hex string. You can generate an encryption key by running `openssl rand -hex 16` in your terminal |
5 | | -MANAGED_WORKER_SECRET=abcdef1234 # Must match the supervisor's MANAGED_WORKER_SECRET |
6 | | -LOGIN_ORIGIN=http://localhost:3030 |
7 | | -DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres?schema=public |
8 | | -# This sets the URL used for direct connections to the database and should only be needed in limited circumstances |
9 | | -# See: https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#fields:~:text=the%20shadow%20database.-,directUrl,-No |
10 | | -DIRECT_URL=postgresql://postgres:postgres@localhost:5432/postgres?schema=public |
11 | | -# Dedicated run-ops database (@internal/run-ops-database). Only needed to run prisma commands |
12 | | -# against it or to enable the run-ops split; start it with `docker compose --profile runops up`. |
13 | | -RUN_OPS_DATABASE_URL=postgresql://postgres:postgres@localhost:5434/postgres?schema=public |
14 | | -REMIX_APP_PORT=3030 |
15 | | -# Dev-only: stream the webapp's logs over a local telnet/TCP socket (nc localhost 6767). Uncomment to enable. |
16 | | -# WEBAPP_TELNET_LOGS_PORT=6767 |
17 | | -APP_ENV=development |
18 | | -APP_ORIGIN=http://localhost:3030 |
19 | | -ELECTRIC_ORIGIN=http://localhost:3060 |
20 | | -NODE_ENV=development |
| 1 | +# Optional local overrides. Copy this file to .env.local, not .env.schema. |
| 2 | +# Local defaults and configuration documentation live in .env.schema. |
| 3 | +# Existing .env files still load; exported variables take precedence over files. |
21 | 4 |
|
22 | | -# Clickhouse |
23 | | -CLICKHOUSE_URL=http://default:password@localhost:8123 |
24 | | -RUN_REPLICATION_CLICKHOUSE_URL=http://default:password@localhost:8123 |
25 | | -RUN_REPLICATION_ENABLED=1 |
26 | | -# LOGS_SEARCH_PROJECTOR_ENABLED=1 |
27 | | -# LOGS_SEARCH_PROJECTOR_PREVIEW_ENABLED=1 |
28 | | -# Store task run spans/traces in ClickHouse so the dashboard trace view is |
29 | | -# populated in local dev. The local stack is ClickHouse-backed (see above), so |
30 | | -# leaving this unset falls back to the "postgres" store and dev run traces show |
31 | | -# up empty even though the run itself appears. |
32 | | -EVENT_REPOSITORY_DEFAULT_STORE=clickhouse_v2 |
33 | | - |
34 | | -# Set this to UTC because Node.js uses the system timezone |
35 | | -TZ="UTC" |
36 | | - |
37 | | -# Redis is used for the v3 queuing and v2 concurrency control |
38 | | -REDIS_HOST="localhost" |
39 | | -REDIS_PORT="6379" |
40 | | -REDIS_TLS_DISABLED="true" |
41 | | - |
42 | | -DEV_OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:3030/otel" |
43 | | -DEV_OTEL_BATCH_PROCESSING_ENABLED="0" |
44 | | - |
45 | | -# Realtime streams v2 (Sessions, chat.agent, large stream backfills) backed |
46 | | -# by S2 (https://s2.dev). The `s2` service in docker/docker-compose.yml runs |
47 | | -# the open-source s2-lite binary and pre-creates a basin named `trigger-local` |
48 | | -# (see docker/config/s2-spec.json). Comment these out to fall back to v1 |
49 | | -# (Redis-only) streams; Sessions and chat.agent then become unavailable. |
50 | | -REALTIME_STREAMS_S2_BASIN=trigger-local |
51 | | -REALTIME_STREAMS_S2_ACCESS_TOKEN=ignored |
52 | | -REALTIME_STREAMS_S2_ENDPOINT=http://localhost:4566/v1 |
53 | | -REALTIME_STREAMS_S2_SKIP_ACCESS_TOKENS=true |
54 | | -REALTIME_STREAMS_DEFAULT_VERSION=v2 |
55 | | - |
56 | | -# Running multiple instances side by side (worktrees, branch experiments) |
57 | | -# |
58 | | -# Every host port in docker/docker-compose.yml is `${VAR:-default}` and the |
59 | | -# project name comes from `COMPOSE_PROJECT_NAME`. To stand up a second stack |
60 | | -# alongside the default one, uncomment the block below in this clone's `.env` |
61 | | -# (pick any offset that doesn't clash with anything else running), then update |
62 | | -# the URL/PORT vars further up to match. Default values are commented for |
63 | | -# reference. |
64 | | -# |
65 | | -# --- core (pnpm run docker) --- |
| 5 | +# For a second local stack, override ports and the corresponding URLs together: |
66 | 6 | # COMPOSE_PROJECT_NAME=triggerdotdev-docker-alt |
67 | 7 | # CONTAINER_PREFIX=alt- |
68 | | -# POSTGRES_HOST_PORT=15432 # default 5432 |
69 | | -# REDIS_HOST_PORT=16379 # default 6379 |
70 | | -# ELECTRIC_HOST_PORT=13060 # default 3060 |
71 | | -# MINIO_API_HOST_PORT=19005 # default 9005 |
72 | | -# MINIO_CONSOLE_HOST_PORT=19006 # default 9006 |
73 | | -# CLICKHOUSE_HTTP_HOST_PORT=18123 # default 8123 |
74 | | -# CLICKHOUSE_TCP_HOST_PORT=19000 # default 9000 |
75 | | -# S2_HOST_PORT=14566 # default 4566 |
76 | | -# REMIX_APP_PORT=13030 # default 3030 |
77 | | -# --- extras (only needed if you also run `pnpm run docker:full`) --- |
78 | | -# ELECTRIC_SHARD_1_HOST_PORT=13061 # default 3061 |
79 | | -# CH_UI_HOST_PORT=15521 # default 5521 |
80 | | -# TOXIPROXY_PROXY_HOST_PORT=40303 # default 30303 |
81 | | -# TOXIPROXY_API_HOST_PORT=18474 # default 8474 |
82 | | -# NGINX_H2_HOST_PORT=18443 # default 8443 |
83 | | -# OTEL_GRPC_HOST_PORT=14317 # default 4317 |
84 | | -# OTEL_HTTP_HOST_PORT=14318 # default 4318 |
85 | | -# OTEL_PROMETHEUS_HOST_PORT=18889 # default 8889 |
86 | | -# PROMETHEUS_HOST_PORT=19090 # default 9090 |
87 | | -# GRAFANA_HOST_PORT=13001 # default 3001 |
88 | | -# (and update DATABASE_URL / CLICKHOUSE_URL / REDIS_PORT / APP_ORIGIN / |
89 | | -# LOGIN_ORIGIN / ELECTRIC_ORIGIN / REALTIME_STREAMS_S2_ENDPOINT to match) |
| 8 | +# POSTGRES_HOST_PORT=15432 |
| 9 | +# DATABASE_URL=postgresql://postgres:postgres@localhost:15432/postgres?schema=public |
| 10 | +# DIRECT_URL=${DATABASE_URL} |
| 11 | +# REMIX_APP_PORT=13030 |
| 12 | +# APP_ORIGIN=http://localhost:13030 |
| 13 | +# LOGIN_ORIGIN=http://localhost:13030 |
90 | 14 |
|
91 | | -# When the domain is set to `localhost` the CLI deploy command will only --load the image by default and not --push it |
92 | | -DEPLOY_REGISTRY_HOST=localhost:5000 |
| 15 | +# Only when using the optional runops Compose profile: |
| 16 | +# RUN_OPS_DATABASE_URL=postgresql://postgres:postgres@localhost:5434/postgres?schema=public |
93 | 17 |
|
94 | | -# OPTIONAL VARIABLES |
95 | | -# This is used for validating emails that are allowed to log in. Every email that do not match this regex will be rejected. |
96 | | -# WHITELISTED_EMAILS="^(authorized@yahoo\.com|authorized@gmail\.com)$" |
97 | | -# Accounts with these emails will get global admin rights. This grants access to the admin UI. |
98 | | -# ADMIN_EMAILS="^(admin@example\.com|another-admin@example\.com)$" |
99 | | -# This is used for logging in via GitHub. You can leave these commented out if you don't want to use GitHub for authentication. |
| 18 | +# Add credentials for optional integrations here, never in .env.schema. |
100 | 19 | # AUTH_GITHUB_CLIENT_ID= |
101 | 20 | # AUTH_GITHUB_CLIENT_SECRET= |
102 | | - |
103 | | -# Configure an email transport to allow users to sign in to Trigger.dev via a Magic Link. |
104 | | -# If none are configured, emails will print to the console instead. |
105 | | -# Uncomment one of the following blocks to allow delivery of |
106 | | - |
107 | | -# Resend |
108 | | -### Visit https://resend.com, create an account and get your API key. Then insert it below along with your From and Reply To email addresses. Visit https://resend.com/docs for more information. |
109 | | -# EMAIL_TRANSPORT=resend |
110 | | -# FROM_EMAIL= |
111 | | -# REPLY_TO_EMAIL= |
112 | 21 | # RESEND_API_KEY= |
113 | | - |
114 | | -# Generic SMTP |
115 | | -### Enter the configuration provided by your mail provider. Visit https://nodemailer.com/smtp/ for more information |
116 | | -### SMTP_SECURE = false will use STARTTLS when connecting to a server that supports it (usually port 587) |
117 | | -# EMAIL_TRANSPORT=smtp |
118 | | -# FROM_EMAIL= |
119 | | -# REPLY_TO_EMAIL= |
120 | | -# SMTP_HOST= |
121 | | -# SMTP_PORT=587 |
122 | | -# SMTP_SECURE=false |
123 | | -# SMTP_USER= |
124 | | -# SMTP_PASSWORD= |
125 | | - |
126 | | -# AWS Simple Email Service |
127 | | -### Authentication is configured using the default Node.JS credentials provider chain (https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-credential-providers/#fromnodeproviderchain) |
128 | | -# EMAIL_TRANSPORT=aws-ses |
129 | | -# FROM_EMAIL= |
130 | | -# REPLY_TO_EMAIL= |
131 | | - |
132 | | -# CLOUD VARIABLES |
133 | | -POSTHOG_PROJECT_KEY= |
134 | | - |
135 | | -# DEPOT_ORG_ID=<Depot org id> |
136 | | -# DEPOT_TOKEN=<Depot org token> |
137 | | -# DEV_OTEL_EXPORTER_OTLP_ENDPOINT="http://0.0.0.0:4318" |
138 | | -# These are needed for the object store (for handling large payloads/outputs) |
139 | | -# |
140 | | -# Default provider |
141 | | -# OBJECT_STORE_BASE_URL=http://localhost:9005 |
142 | | -# OBJECT_STORE_BUCKET=packets |
143 | | -# OBJECT_STORE_ACCESS_KEY_ID=minioadmin |
144 | | -# OBJECT_STORE_SECRET_ACCESS_KEY=minioadmin |
145 | | -# OBJECT_STORE_REGION=us-east-1 |
146 | | -# OBJECT_STORE_SERVICE=s3 |
147 | | -# |
148 | | -# OBJECT_STORE_DEFAULT_PROTOCOL=s3 # Only specify this if you're going to migrate object storage and set protocol values below |
149 | | -# Named providers (protocol-prefixed data) - optional for multi-provider support |
150 | | -# OBJECT_STORE_S3_BASE_URL=https://s3.amazonaws.com |
151 | | -# OBJECT_STORE_S3_ACCESS_KEY_ID= |
152 | | -# OBJECT_STORE_S3_SECRET_ACCESS_KEY= |
153 | | -# OBJECT_STORE_S3_REGION=us-east-1 |
154 | | -# OBJECT_STORE_S3_SERVICE=s3 |
155 | | -# |
156 | | -# OBJECT_STORE_R2_BASE_URL=https://{bucket}.{accountId}.r2.cloudflarestorage.com |
157 | | -# OBJECT_STORE_R2_ACCESS_KEY_ID= |
158 | | -# OBJECT_STORE_R2_SECRET_ACCESS_KEY= |
159 | | -# OBJECT_STORE_R2_REGION=auto |
160 | | -# OBJECT_STORE_R2_SERVICE=s3 |
161 | | -# CHECKPOINT_THRESHOLD_IN_MS=10000 |
162 | | - |
163 | | -# These control the server-side internal telemetry |
164 | | -# INTERNAL_OTEL_TRACE_EXPORTER_URL=<URL to send traces to> |
165 | | -# INTERNAL_OTEL_TRACE_LOGGING_ENABLED=1 |
166 | | -# INTERNAL_OTEL_TRACE_INSTRUMENT_PRISMA_ENABLED=0 |
167 | | - |
168 | | -# Enable local observability stack (requires `pnpm run docker:full` to bring up otel-collector + prometheus + grafana) |
169 | | -# Uncomment these to send metrics to the local Prometheus via OTEL Collector: |
170 | | -# INTERNAL_OTEL_METRIC_EXPORTER_ENABLED=1 |
171 | | -# INTERNAL_OTEL_METRIC_EXPORTER_URL=http://localhost:4318/v1/metrics |
172 | | -# INTERNAL_OTEL_METRIC_EXPORTER_INTERVAL_MS=15000 |
0 commit comments