mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 16:58:36 +00:00
* feat: scale OpenTelemetry sampling and metrics * feat: add per-user invitation metric * fix: monitor every queue in OpenTelemetry * docs: explain retaining every eligible trace * feat: retain all eligible traces with -1 * fix: address feedback; trace ActionType.do and several important handlers methods
126 lines
5.2 KiB
Bash
126 lines
5.2 KiB
Bash
# Docker development environment for Baserow
|
|
# Used by: just dc-dev (docker-compose.dev.yml)
|
|
#
|
|
# This file is auto-created from .env.docker-dev.example when you run `just dc-dev`.
|
|
# For native local development (without Docker), use .env.local instead.
|
|
#
|
|
# DO NOT USE THIS FILE IN PRODUCTION.
|
|
|
|
# Compose profiles to enable. By default, all services including optional ones
|
|
# (storybook, flower) are started. Set to empty to disable optional services.
|
|
# See: https://docs.docker.com/compose/how-tos/profiles/
|
|
COMPOSE_PROFILES=optional
|
|
|
|
SECRET_KEY=baserow # CHANGE THIS IN PRODUCTION!
|
|
DATABASE_PASSWORD=baserow
|
|
REDIS_PASSWORD=baserow
|
|
|
|
# Do not edit the following override, it is required to work with docker-compose.dev.yml.
|
|
BASEROW_PUBLIC_URL=
|
|
PRIVATE_BACKEND_URL=http://backend:8000
|
|
|
|
# In the Dev environment we set the next two variables to force the Caddy reverse proxy
|
|
# onto an unused port. We only want to use Caddy to serve media files and not act
|
|
# as a reverse proxy between your browser and Baserow.
|
|
WEB_FRONTEND_PORT=4000
|
|
WEB_FRONTEND_SSL_PORT=4443
|
|
|
|
PUBLIC_BACKEND_URL=http://localhost:8000
|
|
PUBLIC_WEB_FRONTEND_URL=http://localhost:3000
|
|
# If you change WEB_FRONTEND_PORT above you also need the change the 4000 here to match.
|
|
MEDIA_URL=http://localhost:4000/media/
|
|
|
|
# Change these when running multiple Docker dev instances at the same time.
|
|
# If you change a public port, update the matching PUBLIC_* URL above as well.
|
|
# Set this to a unique value per same-host instance so auth cookies do not collide.
|
|
# BASEROW_FRONTEND_COOKIE_PREFIX=baserow_3000_
|
|
# BASEROW_HOST_PUBLISH_IP=127.0.0.1
|
|
# BASEROW_POSTGRES_PORT=5432
|
|
# BASEROW_DEBUG_REDIS_PORT=6379
|
|
# BASEROW_BACKEND_HOST_PORT=8000
|
|
# BASEROW_WEB_FRONTEND_DEV_PORT=3000
|
|
# BASEROW_STORYBOOK_PORT=6006
|
|
# BASEROW_CELERY_FLOWER_PORT=5555
|
|
# BASEROW_MAILHOG_SMTP_PORT=1025
|
|
# BASEROW_MAILHOG_WEB_PORT=8025
|
|
# BASEROW_OTEL_COLLECTOR_PORT=4318
|
|
# BASEROW_EMBEDDINGS_PORT=7999
|
|
# BASEROW_BACKEND_DEBUGGER_PORT=5678
|
|
#
|
|
# To run two Docker dev instances at the same time, copy one of the following
|
|
# blocks into each instance's .env.docker-dev file. Also update PUBLIC_* and
|
|
# MEDIA_URL so generated links point at the matching instance.
|
|
#
|
|
# Alternate instance A:
|
|
# PUBLIC_BACKEND_URL=http://localhost:8010
|
|
# PUBLIC_WEB_FRONTEND_URL=http://localhost:3010
|
|
# MEDIA_URL=http://localhost:4010/media/
|
|
# WEB_FRONTEND_PORT=4010
|
|
# WEB_FRONTEND_SSL_PORT=4453
|
|
# BASEROW_FRONTEND_COOKIE_PREFIX=baserow_3010_
|
|
# BASEROW_POSTGRES_PORT=15432
|
|
# BASEROW_DEBUG_REDIS_PORT=16379
|
|
# BASEROW_BACKEND_HOST_PORT=8010
|
|
# BASEROW_WEB_FRONTEND_DEV_PORT=3010
|
|
# BASEROW_STORYBOOK_PORT=6016
|
|
# BASEROW_CELERY_FLOWER_PORT=5565
|
|
# BASEROW_MAILHOG_SMTP_PORT=1035
|
|
# BASEROW_MAILHOG_WEB_PORT=8035
|
|
# BASEROW_OTEL_COLLECTOR_PORT=4328
|
|
# BASEROW_EMBEDDINGS_PORT=8009
|
|
# BASEROW_BACKEND_DEBUGGER_PORT=5679
|
|
#
|
|
# Alternate instance B:
|
|
# PUBLIC_BACKEND_URL=http://localhost:8020
|
|
# PUBLIC_WEB_FRONTEND_URL=http://localhost:3020
|
|
# MEDIA_URL=http://localhost:4020/media/
|
|
# WEB_FRONTEND_PORT=4020
|
|
# WEB_FRONTEND_SSL_PORT=4463
|
|
# BASEROW_FRONTEND_COOKIE_PREFIX=baserow_3020_
|
|
# BASEROW_POSTGRES_PORT=25432
|
|
# BASEROW_DEBUG_REDIS_PORT=26379
|
|
# BASEROW_BACKEND_HOST_PORT=8020
|
|
# BASEROW_WEB_FRONTEND_DEV_PORT=3020
|
|
# BASEROW_STORYBOOK_PORT=6026
|
|
# BASEROW_CELERY_FLOWER_PORT=5575
|
|
# BASEROW_MAILHOG_SMTP_PORT=1045
|
|
# BASEROW_MAILHOG_WEB_PORT=8045
|
|
# BASEROW_OTEL_COLLECTOR_PORT=4338
|
|
# BASEROW_EMBEDDINGS_PORT=8019
|
|
# BASEROW_BACKEND_DEBUGGER_PORT=5680
|
|
|
|
# Optional PostgreSQL config for better performance (must be single line in .env files)
|
|
POSTGRES_DEV_EXTRA_ARGS=-c shared_buffers=512MB -c fsync=off -c full_page_writes=off -c synchronous_commit=off -c max_locks_per_transaction=512 -c logging_collector=off -c log_statement=none -c log_duration=off -c log_min_duration_statement=-1 -c log_checkpoints=off -c log_connections=off -c log_disconnections=off -c log_lock_waits=off -c log_temp_files=-1 -c checkpoint_timeout=1h -c max_wal_size=10GB -c min_wal_size=1GB -c wal_level=minimal -c max_wal_senders=0 -c autovacuum=off -c random_page_cost=1.0 -c effective_io_concurrency=200 -c work_mem=256MB -c maintenance_work_mem=512MB
|
|
|
|
|
|
POSTGRES_IMAGE_VERSION=14
|
|
|
|
# Silk profiles every backend request by default. Disable it when measuring request
|
|
# performance or OpenTelemetry overhead without the development profiler.
|
|
# BASEROW_ENABLE_SILK=off
|
|
|
|
# BASEROW_OTEL_SLOW_CELERY_TASK_THRESHOLD_SECONDS=
|
|
# BASEROW_OTEL_TAIL_SAMPLING_DECISION_WAIT=
|
|
# BASEROW_OTEL_TAIL_SAMPLING_DECISION_WAIT_AFTER_ROOT_RECEIVED=
|
|
|
|
# Settings for local dev with MinIO to have local s3-like object storage
|
|
# AWS_ACCESS_KEY_ID=<REDACTED>
|
|
# AWS_SECRET_ACCESS_KEY=<REDACTED>
|
|
# AWS_STORAGE_BUCKET_NAME=baserow
|
|
# AWS_S3_ENDPOINT_URL=http://YOUR_LOCAL_IP:9000
|
|
# AWS_S3_USE_SSL=off
|
|
# AWS_S3_CUSTOM_DOMAIN=
|
|
# AWS_DEFAULT_ACL=
|
|
# AWS_S3_VERIFY=off
|
|
# AWS_S3_SIGNATURE_VERSION = 's3v4'
|
|
# AWS_S3_ADDRESSING_STYLE = 'path'
|
|
|
|
# For code runner
|
|
BASEROW_ENTERPRISE_CODE_RUNNER_DEFAULT_TYPE=wasmtime_quickjs
|
|
## Tweak these two only for local execution
|
|
# BASEROW_ENTERPRISE_CODE_RUNNER_WASMTIME_EXECUTABLE=.local/code-runtime/bin/wasmtime
|
|
# BASEROW_ENTERPRISE_CODE_RUNNER_QUICKJS_WASM_PATH=.local/code-runtime/lib/baserow/qjs.wasm
|
|
# BASEROW_ENTERPRISE_CODE_RUNNER_TIMEOUT_SECONDS=5
|
|
# BASEROW_ENTERPRISE_CODE_RUNNER_MEMORY_LIMIT_BYTES=16777216
|
|
# BASEROW_ENTERPRISE_CODE_RUNNER_FUEL_LIMIT=1000000000
|