Files
spore-deployment/config/nomad/nomad.hcl

68 lines
1.1 KiB
HCL

# Nomad configuration for local development
# This runs a single Nomad instance (both server and client)
# No Consul required - using Nomad's built-in service discovery
# Data directory (use absolute path)
data_dir = "nomad-data"
# Server configuration
server {
enabled = true
bootstrap_expect = 1
}
# Client configuration
client {
enabled = true
# Host network for services that need it
host_network "host" {
cidr = "127.0.0.1/32"
reserved_ports = "3000,3001,3002,4210,8080,8090,1883,9001"
}
# Volumes are now handled via Docker volumes
}
# Plugin configuration (for Docker driver)
plugin "docker" {
config {
endpoint = "unix:///var/run/docker.sock"
allow_privileged = true
volumes {
enabled = true
selinuxlabel = "z"
}
}
}
# Enable UI
ui {
enabled = true
}
# Logging
log_level = "INFO"
# Addresses
addresses {
http = "127.0.0.1"
rpc = "127.0.0.1"
serf = "127.0.0.1"
}
# Advertise addresses (required by Nomad)
advertise {
http = "127.0.0.1:4646"
rpc = "127.0.0.1:4647"
serf = "127.0.0.1:4648"
}
# Ports
ports {
http = 4646
rpc = 4647
serf = 4648
}