# etcd Environment Variables

# etcd image version
ETCD_VERSION=v3.6.0

# Host port mapping for client connections (2379)
ETCD_CLIENT_PORT_OVERRIDE=2379

# Host port mapping for peer connections (2380)
ETCD_PEER_PORT_OVERRIDE=2380

# Human-readable name for this etcd member
ETCD_NAME=etcd-node

# Initial cluster configuration
ETCD_INITIAL_CLUSTER=etcd-node=http://localhost:2380

# Initial cluster state ('new' or 'existing')
ETCD_INITIAL_CLUSTER_STATE=new

# Initial cluster token for bootstrap
ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster

# Auto compaction retention in hours
ETCD_AUTO_COMPACTION_RETENTION=1

# Storage size limit in bytes (2GB = 2147483648)
ETCD_QUOTA_BACKEND_BYTES=2147483648

# Heartbeat interval in milliseconds
ETCD_HEARTBEAT_INTERVAL=100

# Election timeout in milliseconds
ETCD_ELECTION_TIMEOUT=1000

# Enable etcd v2 API
ETCD_ENABLE_V2=false
