Files
rxminder/.env.example
William Valentin ed8cbca1da
Some checks failed
Build and Deploy / build (push) Has been cancelled
Build and Deploy / test (push) Has been cancelled
Build and Deploy / deploy (push) Has been cancelled
build: streamline Docker setup and environment config
- Simplify Dockerfile to use official Bun image as base
- Add admin bootstrap environment variables to .env.example
- Include VITE_ADMIN_EMAIL and VITE_ADMIN_PASSWORD build args
- Fix newline at end of .env.example file
- Remove redundant system dependency installations
2025-10-16 13:16:52 -07:00

95 lines
3.2 KiB
Plaintext

# Environment Configuration Template
# Copy this file to .env and fill in your actual values
# DO NOT commit .env to version control
# Application Name (used in Kubernetes labels and branding)
APP_NAME=rxminder
# Docker Image Configuration
# Examples:
# - Local registry: localhost:5000/rxminder:latest
# - Docker Hub: rxminder/rxminder:v1.0.0
# - GitHub Container Registry: ghcr.io/username/rxminder:latest
# - AWS ECR: 123456789012.dkr.ecr.us-west-2.amazonaws.com/rxminder:latest
DOCKER_IMAGE=gitea-http.taildb3494.ts.net/will/meds:latest
# CouchDB Configuration
COUCHDB_USER=admin
COUCHDB_PASSWORD=change-this-secure-password
VITE_COUCHDB_URL=http://localhost:5984
VITE_COUCHDB_USER=admin
VITE_COUCHDB_PASSWORD=change-this-secure-password
# Default Admin Bootstrap (used by frontend seeder at startup)
# Note: These are evaluated at build-time by Vite. If you change them,
# rebuild the frontend image (`docker compose build frontend`).
VITE_ADMIN_EMAIL=admin@localhost
VITE_ADMIN_PASSWORD=admin123!
# Application Configuration
# Base URL for your application (used in email links)
# Development: http://localhost:5173
# Production: https://your-domain.com
APP_BASE_URL=http://localhost:5173
# Kubernetes Ingress Configuration
# Host for Kubernetes ingress (used in deployment)
# Examples: app.rxminder.192.168.1.100.nip.io, rxminder.yourdomain.com
INGRESS_HOST=app.rxminder.192.168.1.100.nip.io
# Kubernetes Storage Configuration
# Storage class for PersistentVolumeClaims
# Common options: longhorn, local-path, standard, gp2, fast-ssd
STORAGE_CLASS=longhorn
# Storage size for CouchDB data
# Examples: 1Gi, 5Gi, 10Gi, 100Gi
STORAGE_SIZE=5Gi
# Mailgun Email Configuration
MAILGUN_API_KEY=your-mailgun-api-key-here
MAILGUN_DOMAIN=your-domain.com
MAILGUN_FROM_EMAIL=noreply@your-domain.com
# Production-specific settings
NODE_ENV=development
# Optional: External CouchDB for production
# VITE_COUCHDB_URL=https://your-couchdb-instance.com:5984
# VITE_COUCHDB_USER=production-user
# VITE_COUCHDB_PASSWORD=super-secure-production-password
# OAuth Configuration (Optional - for production OAuth)
VITE_GOOGLE_CLIENT_ID=your_google_client_id_here
VITE_GITHUB_CLIENT_ID=your_github_client_id_here
# ============================================================================
# CONTAINER REGISTRY CONFIGURATION
# ============================================================================
# Container registry for Docker images
# Examples:
# - GitHub Container Registry: ghcr.io
# - GitLab Container Registry: registry.gitlab.com
# - Gitea Container Registry: gitea.yourdomain.com
# - Docker Hub: docker.io (or leave empty)
CONTAINER_REGISTRY=ghcr.io
# Repository name for container images
# Format: username/repository-name or organization/repository-name
CONTAINER_REPOSITORY=yourusername/rxminder
# Gitea-specific settings
# Repository name in Gitea (alternative to CONTAINER_REPOSITORY)
GITEA_REPOSITORY=yourusername/rxminder
# ============================================================================
# CI/CD CONFIGURATION
# ============================================================================
# Deployment webhook URL for notifications (optional)
DEPLOYMENT_WEBHOOK_URL=
# Image cleanup settings
CLEANUP_OLD_IMAGES=true