-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
72 lines (61 loc) · 2.67 KB
/
.env.example
File metadata and controls
72 lines (61 loc) · 2.67 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
# =================================================================
# WordPress Docker Environment Configuration
# =================================================================
# Copy this file to .env and update with your actual values
# Command: cp .env.example .env
#
# SECURITY WARNING: Never commit .env to version control!
# =================================================================
# -----------------------------------------------------------------
# Domain Configuration
# -----------------------------------------------------------------
# Your domain name (used in Caddyfile for production)
# For local development, this can be localhost
DOMAIN=yourdomain.com
# Email for Let's Encrypt SSL certificate notifications
CADDY_EMAIL=your-email@example.com
# -----------------------------------------------------------------
# MySQL Database Configuration
# -----------------------------------------------------------------
# Root password for MySQL (use a strong password!)
MYSQL_ROOT_PASSWORD=change_this_root_password
# WordPress database name
MYSQL_DATABASE=wordpress
# WordPress database user
MYSQL_USER=wordpress_user
# WordPress database password (use a strong password!)
MYSQL_PASSWORD=change_this_db_password
# -----------------------------------------------------------------
# WordPress Configuration
# -----------------------------------------------------------------
# Database host (use service name from docker-compose.yml)
WORDPRESS_DB_HOST=mysql:3306
# WordPress database credentials (should match MySQL config above)
WORDPRESS_DB_USER=wordpress_user
WORDPRESS_DB_PASSWORD=change_this_db_password
WORDPRESS_DB_NAME=wordpress
# Optional: WordPress table prefix (default is wp_)
# WORDPRESS_TABLE_PREFIX=wp_
# -----------------------------------------------------------------
# Example Values for Local Development
# -----------------------------------------------------------------
# DOMAIN=localhost
# CADDY_EMAIL=dev@localhost
# MYSQL_ROOT_PASSWORD=rootpass123
# MYSQL_DATABASE=wordpress_dev
# MYSQL_USER=wpuser
# MYSQL_PASSWORD=wppass123
# WORDPRESS_DB_HOST=mysql:3306
# WORDPRESS_DB_USER=wpuser
# WORDPRESS_DB_PASSWORD=wppass123
# WORDPRESS_DB_NAME=wordpress_dev
# -----------------------------------------------------------------
# Production Security Checklist
# -----------------------------------------------------------------
# ✓ Change all default passwords
# ✓ Use strong passwords (20+ characters, mixed case, numbers, symbols)
# ✓ Update DOMAIN with your actual domain
# ✓ Update CADDY_EMAIL with your real email
# ✓ Ensure .env is in .gitignore
# ✓ Keep .env file permissions secure (chmod 600 .env)
# -----------------------------------------------------------------