job "mps-thecollegeview" { datacenters = ["aperture"] type = "service" meta { domain = "thecollegeview.ie" } group "tcv" { count = 1 network { mode = "bridge" port "http" { to = 80 } port "fpm" { to = 9000 } port "db" { to = 3306 } } service { name = "tcv-web" port = "http" check { type = "http" path = "/" interval = "10s" timeout = "5s" } tags = [ "traefik.enable=true", "traefik.http.routers.tcv.rule=Host(`${NOMAD_META_domain}`)", "traefik.http.routers.tcv.entrypoints=web,websecure", "traefik.http.routers.tcv.tls.certresolver=lets-encrypt", ] } task "tcv-nginx" { driver = "docker" config { image = "nginx:alpine" ports = ["http"] volumes = [ "local/nginx.conf:/etc/nginx/nginx.conf", "/storage/nomad/mps-thecollegeview:/var/www/html/", ] } resources { cpu = 200 memory = 100 } template { data = <