Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
**/.nuxt
**/.nuxt-storybook
**/.storybook
**/node_modules
**/.cache
web-frontend/reports/

**/.venv/
**/.ruff_cache
**/.pytest_cache
**/__pycache__
**/*.pyc
**/*.pyo
backend/reports/
backend/src/baserow.egg-info
backend/media/

*.iml
.idea/
.vscode/
.local/
web-frontend/reports/
backend/reports/
backend/src/baserow.egg-info
.git/
**/.claude/
**/.gitignore
**/Dockerfile
**/docker-compose*.yml
43 changes: 0 additions & 43 deletions .env.dev.example

This file was deleted.

49 changes: 49 additions & 0 deletions .env.docker-dev.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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
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/

# 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=13

# 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'
74 changes: 74 additions & 0 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Local development environment for Baserow
# Copy this file to .env.local and adjust as needed
#
# This file is for running Baserow OUTSIDE of Docker (native Python/Node).
# For Docker development, use .env.dev.example instead.
#
# =============================================================================
# Django Settings
# =============================================================================
DJANGO_SETTINGS_MODULE=baserow.config.settings.dev
# For running tests:
# DJANGO_SETTINGS_MODULE=baserow.config.settings.test

# =============================================================================
# Security (use simple values for local dev only!)
# =============================================================================
SECRET_KEY=local-dev-secret-key-not-for-production
BASEROW_JWT_SIGNING_KEY=local-dev-jwt-key-not-for-production

# =============================================================================
# Database (local PostgreSQL)
# =============================================================================
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=baserow
DATABASE_USER=baserow
DATABASE_PASSWORD=baserow
# speed up operations and tests (must be single line, quoted for bash sourcing)
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"

# Or use a connection URL:
# DATABASE_URL=postgresql://baserow:baserow@localhost:5432/baserow

# =============================================================================
# Redis (local Redis)
# =============================================================================
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=baserow

# =============================================================================
# URLs
# =============================================================================
BASEROW_PUBLIC_URL=
PUBLIC_BACKEND_URL=http://localhost:8000
PUBLIC_WEB_FRONTEND_URL=http://localhost:3000
PRIVATE_BACKEND_URL=http://localhost:8000

# =============================================================================
# Backend Development Settings
# =============================================================================
BASEROW_BACKEND_DEBUG=on
BASEROW_BACKEND_LOG_LEVEL=INFO

# Disable template sync on startup for faster boot
SYNC_TEMPLATES_ON_STARTUP=false
MIGRATE_ON_STARTUP=false

# =============================================================================
# Optional: Email (use console backend for local dev)
# =============================================================================
# EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend

# =============================================================================
# Optional: Celery
# =============================================================================
# Run celery tasks synchronously (no separate worker needed)
# CELERY_TASK_ALWAYS_EAGER=true

# =============================================================================
# Media files (path relative to the backend folder)
# =============================================================================
MEDIA_ROOT=./media
MEDIA_URL=http://localhost:8000/media/
Loading
Loading