Merge pull request #15 from redbrick/solar-racing-site
add Solar Racing website
This commit is contained in:
		
						commit
						cc23af5889
					
				
					 1 changed files with 47 additions and 0 deletions
				
			
		
							
								
								
									
										47
									
								
								jobs/dcusr.hcl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								jobs/dcusr.hcl
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,47 @@
 | 
				
			||||||
 | 
					job "dcusr" {
 | 
				
			||||||
 | 
					  datacenters = ["aperture"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  type = "service"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  group "dcusr" {
 | 
				
			||||||
 | 
					    count = 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    network {
 | 
				
			||||||
 | 
					      port "http" {
 | 
				
			||||||
 | 
					        to = 3000
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    service {
 | 
				
			||||||
 | 
					      name = "dcusr"
 | 
				
			||||||
 | 
					      port = "http"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      check {
 | 
				
			||||||
 | 
					        type = "http"
 | 
				
			||||||
 | 
					        path = "/"
 | 
				
			||||||
 | 
					        interval = "10s"
 | 
				
			||||||
 | 
					        timeout = "2s"
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      tags = [
 | 
				
			||||||
 | 
					        "traefik.enable=true",
 | 
				
			||||||
 | 
					        "traefik.http.routers.dcusr.rule=Host(`dcusr.aperture.redbrick.dcu.ie`)",
 | 
				
			||||||
 | 
					        "traefik.http.routers.dcusr.entrypoints=web,websecure",
 | 
				
			||||||
 | 
					        "traefik.http.routers.dcusr.tls.certresolver=lets-encrypt",
 | 
				
			||||||
 | 
					      ]
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    task "nextjs-website" {
 | 
				
			||||||
 | 
					      driver = "docker"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      config {
 | 
				
			||||||
 | 
					        image = "ghcr.io/dcu-solar-racing/nextjs-website:main"
 | 
				
			||||||
 | 
					        ports = ["http"]
 | 
				
			||||||
 | 
					        auth {
 | 
				
			||||||
 | 
					          username = {{ key "dcusr/ghcr/username" }}
 | 
				
			||||||
 | 
					          password = {{ key "dcusr/ghcr/password" }}
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in a new issue