Repository navigation
Expand file tree
/
Copy path.env.docker
More file actions
91 lines (83 loc) · 3.71 KB
/
Copy path.env.docker
File metadata and controls
91 lines (83 loc) · 3.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# ─── CodeBaseFoundation Docker Environment ──────────────────
#
# For local dev with Docker infra only:
# docker compose up -d convex-backend redis
# # then run frontend/backend natively
#
# For full-stack Docker:
# cp .env.docker .env && docker compose up -d --build
#
# After fresh Convex volume, extract admin key:
# docker compose exec convex-backend bash generate_admin_key.sh
# # paste key below at CONVEX_SELF_HOSTED_ADMIN_KEY
# ─── AI Provider Keys (at least one required) ───────────────
# OPENAI_API_KEY=sk-your-key
# ANTHROPIC_API_KEY=
# GEMINI_API_KEY=
# GROQ_API_KEY=
# MINIMAX_API_KEY=
# ─── Frontend ↔ Backend Connection ──────────────────────────
# Ports: frontend=3000, backend=3001 (matches native dev defaults)
NEXT_PUBLIC_BACKEND_HOST=localhost
NEXT_PUBLIC_BACKEND_HTTP_PORT=3001
NEXT_PUBLIC_BACKEND_WS_PORT=3001
NEXT_PUBLIC_BACKEND_PROTOCOL=http
NEXT_PUBLIC_BACKEND_WS_PROTOCOL=ws
NEXT_PUBLIC_APP_URL=http://localhost:3000
# ─── Convex (Self-Hosted) ───────────────────────────────────
# Host-side URL (browser → Convex via published port)
NEXT_PUBLIC_CONVEX_URL=http://127.0.0.1:3232
# Container-side URL (backend → Convex via Docker network)
CONVEX_SELF_HOSTED_URL=http://convex-backend:3210
# Extract with: docker compose exec convex-backend bash generate_admin_key.sh
# CONVEX_SELF_HOSTED_ADMIN_KEY=convex-self-hosted|your-admin-key
#
# One-time founder bootstrap. The FIRST founder claim in the admin UI must
# present this exact value; set it on the Convex deployment
# (`npx convex env set FOUNDER_BOOTSTRAP_TOKEN <random>`) before the first
# operator signs in, and rotate/unset it once a founder exists. Unset =
# bootstrap closed.
# FOUNDER_BOOTSTRAP_TOKEN=change-me-before-first-deploy
# ─── TrailBase (Local Sidecar) ──────────────────────────────
# Docker local development uses one local TrailBase sidecar. Deployed dev/prod
# environments should override these to their environment-specific control plane
# and public /app-api base.
TRAILBASE_ENV=local
TRAILBASE_MODE=single
TRAILBASE_CONTROL_PORT=4000
TRAILBASE_CONTROL_BASE_URL=http://trailbase:4000
TRAILBASE_PUBLIC_BASE_URL=http://localhost:4000
NEXT_PUBLIC_TRAILBASE_PUBLIC_BASE_URL=http://localhost:4000
# ─── Auth (NextAuth) ────────────────────────────────────────
# Generate with: openssl rand -base64 32
# AUTH_SECRET=
# NEXTAUTH_SECRET=
NEXTAUTH_URL=http://localhost:3000
# GOOGLE_CLIENT_ID=
# GOOGLE_CLIENT_SECRET=
# GITHUB_CLIENT_ID=
# GITHUB_CLIENT_SECRET=
# ─── Optional Services ──────────────────────────────────────
# TAVILY_API_KEY=
# AIPG_API_KEY=
# SENTRY_DSN=
# NEXT_PUBLIC_SENTRY_DSN=
# ─── Email (dev capture via MailHog sidecar) ────────────────
# Containerized backend reaches MailHog by service name; native dev uses
# 127.0.0.1 (see web/.env.example). Disabled by default in production
# until SPF/DKIM DNS is live (beads productionhosting-034).
EMAIL_ENABLED=true
EMAIL_DRIVER=smtp
SMTP_HOST=mailhog
SMTP_PORT=1025
EMAIL_FROM="Codebase <hello@codebase.design>"
# ─── Ports (change if defaults conflict) ────────────────────
# FRONTEND_PORT=3000
# BACKEND_PORT=3001
# CONVEX_PORT=3232
# CONVEX_SITE_PORT=3233
# CONVEX_DASHBOARD_PORT=6791
# REDIS_PORT=6379
# TRAILBASE_PORT=4000
# MAILHOG_SMTP_PORT=1025
# MAILHOG_UI_PORT=8025