diff --git a/main.star b/main.star index a4e26c2..5344645 100644 --- a/main.star +++ b/main.star @@ -47,8 +47,12 @@ def run(plan): gm_port_spec = PortSpec( number=gm_port_number, transport_protocol="TCP", application_protocol="http" ) + gm_frontend_port_spec = PortSpec( + number=1317, transport_protocol="TCP", application_protocol="http" + ) gm_ports = { "jsonrpc": gm_port_spec, + "frontend": gm_frontend_port_spec, } gm = plan.add_service( name="gm", @@ -73,3 +77,25 @@ def run(plan): ), ), ) + + ############# + # GM Frontend + ############# + plan.print("Adding GM Frontend service") + frontend_port_number = 3000 + frontend_port_spec = PortSpec( + number=frontend_port_number, + transport_protocol="TCP", + application_protocol="http", + ) + frontend_ports = { + "server": frontend_port_spec, + } + frontend = plan.add_service( + name="frontend", + config=ServiceConfig( + image="ghcr.io/rollkit/gm-frontend:v0.2.0", + ports=frontend_ports, + public_ports=frontend_ports, + ), + )