βοΈ Environment VariablesΒΆ
These environment variables configure all Homelab services. Store sensitive values in your .env
file and reference them in Docker Compose.
Variable | Description | Example |
---|---|---|
π‘ SYNOLOGY_BASIC_URL |
Base URL for Synology services | https://synology.yourdomain.com |
π MOUNT_PATH_DOCKER_ROOT |
Docker volumes root path | /mnt/docker |
π§ EMAIL |
Primary contact email | [email protected] |
Variable | Description | Security |
---|---|---|
π PG_PASS |
PostgreSQL database password | π Sensitive |
π AUTHENTIK_SECRET_KEY |
Autentik cryptographic key | π Sensitive |
π οΈ SUDO_PASSWORD_VSCODE |
VS Code container sudo password | π Sensitive |
Variable | Description | Required |
---|---|---|
π© MAIL_RECEIVER |
Alert notifications recipient | [email protected] |
π€ SMTP_PASSWORD |
Outbound mail server password | π Yes |
Variable | Description | Service |
---|---|---|
π CLOUDFLARE_TOKEN |
Cloudflare API token | π Tunnel/DNS |
π« PI_HOLE_PASSWORD |
Pi-hole admin interface | π DNS |
Variable | Description | Scope |
---|---|---|
π INITIAL_ADMIN_PASSWORD |
Default admin password | Multiple services |
π΅οΈββοΈ WATCHTOWER_HTTP_API_TOKEN |
Container update auth | π Watchtower |
Best Practices
- Always use
.env
files for sensitive variables - Rotate credentials quarterly
- Restrict permissions to
600
- Never commit to version control