-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env-copy
More file actions
75 lines (64 loc) · 2.95 KB
/
.env-copy
File metadata and controls
75 lines (64 loc) · 2.95 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
# ============================================================================
# Web Service Template Environment Configuration
# ============================================================================
# SSL/Domain Configuration (Required for Production)
# --------------------------------------------------
DOMAIN=your-domain.com # Your domain name for SSL certificates
# DOMAIN_EMAIL=admin@your-domain.com # Optional: Admin email for domain
# Docker Service Versions
# ------------------------
PYTHON_VERSION=3.11
REDIS_VERSION=7-alpine
POSTGRES_VERSION=16-alpine
MINIO_VERSION=latest
# Application Configuration
# -------------------------
SERVICE_PORT=8000 # FastAPI application port
WORKERS_COUNT=1 # Number of Gunicorn workers
# Database Configuration
# ----------------------
POSTGRES_USER=postgres
POSTGRES_PASSWORD=changeme_secure_password # CHANGE THIS IN PRODUCTION
POSTGRES_DB=webapp
POSTGRES_PORT=5432
POSTGRES_SERVER=db # Use container name in Docker network
# Redis Configuration
# -------------------
REDIS_HOST=redis_db # Use container name in Docker network
REDIS_PORT=6379
REDIS_DB=0
# MinIO S3 Configuration
# ----------------------
MINIO_SERVER_PORT=9001 # MinIO web console port
S3_PORT=9002 # MinIO API port
S3_HOST=http://minio # Use container name in Docker network
S3_ENDPOINT=http://minio:9002 # Full endpoint URL
S3_ACCESS_KEY_ID=minioadmin # CHANGE THIS IN PRODUCTION
S3_ACCESS_KEY=minioadmin123 # CHANGE THIS IN PRODUCTION
S3_BUCKET=uploads # Default bucket name
# Logging Configuration
# ---------------------
LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_PATH=/var/log/webapp # Log file path inside container
# Celery Configuration
# --------------------
RQ_QUEUE=default # Default queue name
# Additional Database (Optional)
# ------------------------------
POSTGRES_USER_2=user2
POSTGRES_PASSWORD_2=changeme_secure_password2 # CHANGE THIS IN PRODUCTION
POSTGRES_DB_2=webapp2
POSTGRES_PORT_2=5433 # Different port to avoid conflicts
POSTGRES_SERVER_2=db # Can use same server with different DB
# Development Settings (Optional)
# --------------------------------
# DEBUG=True # Enable debug mode (development only)
# RELOAD=True # Enable auto-reload (development only)
# Production Security Notes:
# ==========================
# 1. Change all default passwords before deploying
# 2. Use strong, unique passwords for each service
# 3. Consider using Docker secrets for sensitive values
# 4. Set DOMAIN variable for SSL certificate generation
# 5. Ensure firewall rules are properly configured
# 6. Review and update all default credentials