-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.docker.example
More file actions
119 lines (101 loc) · 3.54 KB
/
.env.docker.example
File metadata and controls
119 lines (101 loc) · 3.54 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# =================================
# Docker Development Environment Variables
# =================================
# Copy this file to .env.docker and fill in your values:
# cp .env.docker.example .env.docker
#
# This file contains environment variables for Docker development setup
# Based on .env with adaptations for Docker networking
# =================================
# Database Configuration
# =================================
LANGBUILDER_DATABASE_URL=postgresql://langbuilder:langbuilder@postgres:5432/langbuilder
DATABASE_URL=sqlite:///./data/webui.db
DATA_DIR=./data
# =================================
# Ollama Configuration
# =================================
# For local Ollama (running on host machine):
OLLAMA_BASE_URL=http://host.docker.internal:11434
# For Ollama in Docker (uncomment if using ollama service):
# OLLAMA_BASE_URL=http://ollama:11434
# =================================
# OpenAI Configuration
# =================================
OPENAI_API_BASE_URL=
OPENAI_API_KEY=your-openai-api-key-here
# =================================
# Port Configuration
# =================================
# Note: Internal ports are defined in docker-compose.dev.yml
# These are the external (host) ports:
FRONTEND_PORT=5175
BACKEND_PORT=8002
OPEN_WEBUI_PORT=8767
VITE_PORT=3000
VITE_PROXY_TARGET=http://langbuilder-backend:8002
LANGBUILDER_BACKEND_PORT=8002
PORT=8767
HOST=0.0.0.0
# =================================
# CORS Configuration
# =================================
# Allow all local development ports
CORS_ALLOW_ORIGIN=http://localhost:5175;http://localhost:8002;http://localhost:3000;http://localhost:8767
# For production you should set this to match the proxy configuration
FORWARDED_ALLOW_IPS=*
# =================================
# Telemetry & Analytics
# =================================
SCARF_NO_ANALYTICS=true
DO_NOT_TRACK=true
ANONYMIZED_TELEMETRY=false
# =================================
# Google OAuth Configuration (Optional)
# =================================
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_REDIRECT_URI=http://localhost:8767/oauth/google/callback
# Google Drive Integration (Optional)
GOOGLE_DRIVE_CLIENT_ID=your-google-drive-client-id
GOOGLE_DRIVE_CLIENT_SECRET=your-google-drive-client-secret
WEBUI_URL=http://localhost:5175
# OAuth Settings
ENABLE_OAUTH_SIGNUP=true
OAUTH_ALLOWED_DOMAINS=*
OAUTH_MERGE_ACCOUNTS_BY_EMAIL=true
OAUTH_UPDATE_PICTURE_ON_LOGIN=true
# OpenID Provider URL for proper logout functionality
OPENID_PROVIDER_URL=https://accounts.google.com/.well-known/openid_configuration
# =================================
# Authentication Settings
# =================================
ENABLE_SIGNUP=true
ENABLE_LOGIN_FORM=true
ENABLE_API_KEY=true
# =================================
# Application Settings
# =================================
WEBUI_NAME=LangBuilder
WEBUI_SECRET_KEY=your-secret-key-here-change-in-production
JWT_EXPIRES_IN=24h
# =================================
# Session Configuration (OAuth Fix)
# =================================
WEBUI_SESSION_COOKIE_SAME_SITE=lax
WEBUI_SESSION_COOKIE_SECURE=false
# Enable debug logging for development
GLOBAL_LOG_LEVEL=DEBUG
LOG_LEVEL=debug
# =================================
# Zoho OAuth Configuration (Optional)
# =================================
ZOHO_CLIENT_ID=your-zoho-client-id
ZOHO_CLIENT_SECRET=your-zoho-client-secret
ZOHO_REDIRECT_URI=http://localhost:8002/api/v1/services/zoho/callback
# =================================
# Development Settings
# =================================
ENV=dev
NODE_ENV=development
PYTHONUNBUFFERED=1