https://github.com/mpolinowski/nomad-grav
Deploy the Grav CMS with Hashicorp Nomad
https://github.com/mpolinowski/nomad-grav
docker grav hashicorp-nomad
Last synced: 2 months ago
JSON representation
Deploy the Grav CMS with Hashicorp Nomad
- Host: GitHub
- URL: https://github.com/mpolinowski/nomad-grav
- Owner: mpolinowski
- Created: 2022-11-18T12:42:34.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-18T12:42:38.000Z (over 2 years ago)
- Last Synced: 2025-01-28T19:17:39.105Z (4 months ago)
- Topics: docker, grav, hashicorp-nomad
- Language: HCL
- Homepage: https://mpolinowski.github.io/docs/DevOps/Hashicorp/2022-11-18-hashicorp-nomad-grav/2022-11-18
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy the Grav CMS with Hashicorp Nomad
[Grav](https://getgrav.org/) is a Fast, Simple, and Flexible file-based Web-platform. Using Nomad to deploy the the Grav open source flat-file CMS.
### Complete Job File
```bash
job "grav" {
datacenters = ["dc1"]
group "grav" {
network {
mode = "host"
port "http" {
to = 80
}
}update {
max_parallel = 1
min_healthy_time = "10s"
healthy_deadline = "5m"
progress_deadline = "10m"
auto_revert = true
auto_promote = true
canary = 1
}restart {
attempts = 10
interval = "5m"
delay = "25s"
mode = "delay"
}volume "grav_config" {
type = "host"
read_only = false
source = "grav_config"
}service {
name = "grav-frontend"
port = "http"
tags = [
"frontend"
]check {
name = "HTTP Health"
path = "/"
type = "http"
protocol = "http"
interval = "10s"
timeout = "2s"
}
}task "grav-frontend" {
driver = "docker"volume_mount {
volume = "grav_config"
destination = "/config"
read_only = false
}config {
image = "linuxserver/grav:latest"
ports = ["http"]
network_mode = "host"
force_pull = false
}env {
PUID= "1000"
PGID= "1000"
TZ = "America/New_York"
}resources {
cpu = 100
memory = 300
}
}
}
}
```