Repository navigation
Expand file tree
/
Copy path.env.docker.template
More file actions
60 lines (54 loc) · 2.06 KB
/
Copy path.env.docker.template
File metadata and controls
60 lines (54 loc) · 2.06 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
# ==========================================
# embapi Docker Environment Configuration
# ==========================================
#
# This file contains environment variables for running embapi with Docker.
# Copy this file to .env and update the values as needed.
#
# IMPORTANT: Never commit the actual .env file to version control!
# Service Configuration
# ---------------------
SERVICE_DEBUG=false
SERVICE_HOST=0.0.0.0
SERVICE_PORT=8880
# Database Configuration
# ----------------------
# For docker-compose: Use 'postgres' as the hostname (service name)
# For external database: Use the actual database hostname/IP
SERVICE_DBHOST=postgres
SERVICE_DBPORT=5432
SERVICE_DBUSER=postgres
SERVICE_DBPASSWORD=your_secure_password_here
SERVICE_DBNAME=embapi
# Port Mapping
# ------------
# External port to expose the API (maps to internal SERVICE_PORT)
API_PORT=8880
# External port to expose PostgreSQL (maps to internal 5432)
POSTGRES_PORT=5432
# Security Configuration
# ----------------------
# REQUIRED: Admin API key for administrative operations
# Generate a secure random key for production
SERVICE_ADMINKEY=your_admin_key_here
# REQUIRED: Encryption key for API keys in LLM service instances
# Must be a secure random string, at least 32 characters recommended
# Generate with: openssl rand -hex 32
ENCRYPTION_KEY=your_encryption_key_here_at_least_32_chars
# ==========================================
# Docker-Specific Notes
# ==========================================
#
# 1. To connect to an external postgres-vector database:
# - Set SERVICE_DBHOST to the external database hostname/IP
# - Ensure the database has the pgvector extension installed
# - Comment out or remove the 'postgres' service from docker-compose.yml
#
# 2. To use docker-compose with included PostgreSQL:
# - Keep SERVICE_DBHOST=postgres
# - The postgres service will be automatically started
#
# 3. For production deployments:
# - Always use strong, randomly generated values for passwords and keys
# - Consider using Docker secrets for sensitive values
# - Enable HTTPS/TLS for production traffic