feat: Compose and Nomad deployment
This commit is contained in:
60
config/nomad/nomad.hcl
Normal file
60
config/nomad/nomad.hcl
Normal file
@@ -0,0 +1,60 @@
|
||||
# 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"
|
||||
}
|
||||
|
||||
# Ports
|
||||
ports {
|
||||
http = 4646
|
||||
rpc = 4647
|
||||
serf = 4648
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user