-
Notifications
You must be signed in to change notification settings - Fork 209
Expand file tree
/
Copy path.env.swarm.example
More file actions
87 lines (77 loc) · 3.57 KB
/
Copy path.env.swarm.example
File metadata and controls
87 lines (77 loc) · 3.57 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
# =============================================================================
# Evo CRM Community — Swarm Environment Configuration (REFERENCE ONLY)
# =============================================================================
# ⚠️ IMPORTANT: docker-compose.swarm.yaml does NOT interpolate ${VARS}. Every
# value in that stack is set INLINE. This file is therefore a *reference* /
# checklist of the values you must fill in — it is NOT consumed by the deploy.
#
# To deploy:
# 1. Edit docker-compose.swarm.yaml directly, replacing the inline
# placeholders: SUBDOMAIN_API / SUBDOMAIN_FRONTEND (your domains),
# every empty secret (SECRET_KEY_BASE, JWT_SECRET_KEY, EVOAI_CRM_API_TOKEN,
# DOORKEEPER_JWT_SECRET_KEY, ENCRYPTION_KEY, BOT_RUNTIME_SECRET — same
# value everywhere it appears), the Postgres password, and SMTP/S3 if used.
# 2. Create the external network/volumes and a pgvector Postgres (see the
# header of docker-compose.swarm.yaml for the full dependency list).
# 3. Deploy:
# docker stack deploy -c docker-compose.swarm.yaml evo_crm
#
# The values below mirror the defaults baked into docker-compose.swarm.yaml so
# the two stay coherent (DB name `evocrm`, sslmode `disable`).
# =============================================================================
# =============================================================================
# DOMAINS (only 2 needed)
# =============================================================================
API_DOMAIN=api.example.com
FRONTEND_DOMAIN=app.example.com
# =============================================================================
# SHARED SECRETS
# =============================================================================
# Generate with: openssl rand -hex 64
SECRET_KEY_BASE=CHANGE_ME
JWT_SECRET_KEY=CHANGE_ME
DOORKEEPER_JWT_SECRET_KEY=CHANGE_ME
# Generate with: openssl rand -hex 32
EVOAI_CRM_API_TOKEN=CHANGE_ME
BOT_RUNTIME_SECRET=CHANGE_ME
# Generate with: python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
ENCRYPTION_KEY=CHANGE_ME
# =============================================================================
# DATABASE (PostgreSQL)
# =============================================================================
POSTGRES_HOST=pgvector
POSTGRES_PORT=5432
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=CHANGE_ME
POSTGRES_DATABASE=evocrm
POSTGRES_SSLMODE=disable
# =============================================================================
# REDIS
# =============================================================================
# Used by auth, crm, bot-runtime
REDIS_URL=redis://:your-redis-password@your-redis-host:6379/0
# Used by processor (separate vars)
PROCESSOR_REDIS_HOST=your-redis-host
PROCESSOR_REDIS_PORT=6379
PROCESSOR_REDIS_PASSWORD=your-redis-password
PROCESSOR_REDIS_DB=0
# Processor postgres connection string
PROCESSOR_POSTGRES_CONNECTION_STRING=postgresql://postgres:CHANGE_ME@pgvector:5432/evocrm?sslmode=disable
# =============================================================================
# EMAIL (SMTP)
# =============================================================================
MAILER_SENDER_EMAIL=noreply@example.com
SMTP_ADDRESS=smtp.example.com
SMTP_PORT=587
SMTP_DOMAIN=example.com
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true
SMTP_USERNAME=
SMTP_PASSWORD=
# =============================================================================
# OPTIONAL
# =============================================================================
MFA_ISSUER=EvoCRM
SIDEKIQ_CONCURRENCY=10
ACTIVE_STORAGE_SERVICE=local
ORGANIZATION_NAME=Evo CRM