Skip to content

Commit

Permalink
Merge pull request #455 from getlago/feat/improv-dev-env
Browse files Browse the repository at this point in the history
feat(docker): Use .env files for dev environment
  • Loading branch information
julienbourdeau authored Jan 29, 2025
2 parents 1397f67 + 16eb537 commit 0a67ac0
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 271 deletions.
54 changes: 54 additions & 0 deletions .env.development.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
LAGO_API_URL=https://api.lago.dev
LAGO_FRONT_URL=https://app.lago.dev

# Feature flags
LAGO_SIDEKIQ_WEB=true
LAGO_CLICKHOUSE_ENABLED=true
LAGO_CLICKHOUSE_MIGRATIONS_ENABLED=true
LAGO_DISABLE_SEGMENT=true
LAGO_DISABLE_WALLET_REFRESH=true
LAGO_USE_AWS_S3=false

# DB Seeding
LAGO_CREATE_ORG=true
[email protected]
LAGO_ORG_USER_PASSWORD=password
LAGO_ORG_NAME=Acme

# Accessories (DB, pdf, kafka)
POSTGRES_USER=lago
POSTGRES_DB=lago
POSTGRES_PASSWORD=changeme
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
REDIS_URL=redis://redis:6379
LAGO_REDIS_CACHE_URL=redis://redis:6379
LAGO_PDF_URL=http://pdf:3000
LAGO_LICENSE_URL=http://license:3000
LAGO_KAFKA_BOOTSTRAP_SERVERS=redpanda:9092
LAGO_KAFKA_RAW_EVENTS_TOPIC=events-raw
LAGO_KAFKA_ENRICHED_EVENTS_TOPIC=events_enriched
LAGO_KAFKA_CLICKHOUSE_CONSUMER_GROUP=clickhouse

# Misc
[email protected]
LAGO_PARALLEL_THREADS_COUNT=4

# Use dedicated services to process certain queues
# If you enable one, make sure the related service is started
# Ex: SIDEKIQ_WEBHOOK=true means `api-webhook-worker` must be running or webhooks-related jobs won't be processed
SIDEKIQ_EVENTS=false
SIDEKIQ_PDFS=false
SIDEKIQ_BILLING=false
SIDEKIQ_CLOCK=false
SIDEKIQ_WEBHOOK=false

# External API keys
LAGO_LICENSE="35be6ead-a590-4593-9a45-01f62c248faa"
NANGO_SECRET_KEY=
SEGMENT_WRITE_KEY=

# Salts and similar
SECRET_KEY_BASE=your-secret-key-base-hex-64
LAGO_ENCRYPTION_PRIMARY_KEY=your-encrpytion-primary-key
LAGO_ENCRYPTION_DETERMINISTIC_KEY=your-encrpytion-deterministic-key
LAGO_ENCRYPTION_KEY_DERIVATION_SALT=your-encrpytion-derivation-salt
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.code-workspace
.DS_Store
.env
.env.development
.rsa_private.pem
.vscode
/extra/ssl/certbot
Expand Down
Loading

0 comments on commit 0a67ac0

Please sign in to comment.