Goal
Add a template’s services to an application with sizes that fit and without typing any passwords.Prerequisites
- A paid plan for StackShift hosting, or one of your own servers connected
- Any answers the template asks for, such as an admin email
Workflow
1
Open the template and choose Set up. From an application, Add a service › From a template picks that application for you.
2
Under Where it goes choose An existing application, A new application and give it a name, or Next to one of your projects and pick the project.
3
For a new application, choose under Runs on whether it runs on StackShift or one of your servers. In an existing application, or next to a project, new services run where the application or project already runs.
4
Pick a size for each service. Sizes tagged Recommended fit real traffic; For development sizes start but are only for trying things out. Sizes below what the software needs cannot be picked.
5
If the template allows it, switch on a public address for the services that should be reachable from the internet.
6
Read What will run on the right: the service name, its private address, its storage and the variables apps get when you link them. Then choose Set up.
Sizes, recommended and for development
- Each service has a minimum and a recommended amount of memory. Elasticsearch, for example, needs 1 GB and recommends 2 GB.
- Sizes at or above the recommended amount are fine for production. The smallest one is tagged Recommended and picked for you.
- Sizes between the minimum and the recommended amount are tagged For development. The service starts, but it can slow down or stop under real load.
- Sizes below the minimum are refused. If your plan only allows sizes below it, change your plan first.
- Each service is billed at the size you pick, like any other service.
Next to one of your projects
- Pick this when the project that needs the service is not in an application. The list shows only those projects.
- The template’s services run on that project’s own private network, on the same server. No application is involved: the project stays where it is, with its address and domains.
- What will run lists the variables the project gets, such as ELASTICSEARCH_URL. A variable the project already sets itself is marked your value is kept, and the project keeps its own value.
- The project needs a redeploy to reach the new services and receive the variables. Tick Redeploy <project> now to do it straight away; the page says what that redeploy does, for example no downtime for a web project.
- Leave it unticked and nothing touches the running project. It gets the private addresses and the variables on its next deploy.
- After setup you land on the project’s page, which lists what runs next to it. Each of those is a project of its own; open it to change its size or variables.
- A project with others running next to it can’t be deleted or moved into an application. Delete the ones next to it first.
Names and addresses
A service takes the name the template gives it, such as elasticsearch. If the application already has a service with that name, the new one becomes elasticsearch-2. Its private address is <name>.<network>.stackshift.internal. For an existing application What will run shows it in full; for a new one the last part is set when the application is created. A public service gets a StackShift address; add your own domain from the service settings after setup.If it is refused
- The size is below what the software needs: pick a larger size.
- Your plan does not include a size big enough: change your plan or run it on your own server.
- A required answer is missing: fill it in; the Set up button stays off until then.
Expected result
You land on the application. The new services appear on its canvas and start their first deploy.
Related guides
What templates are
A template adds ready-made services, such as Elasticsearch, Grafana or Ghost, to one of your applications, next to your own apps and on the same private network.
Generated secrets, reference variables and links
How template services get their passwords, how a variable can point at another service, and what your app receives when you link it.
Elasticsearch
Run Elasticsearch 9.5.6 as a private service in your application, connect your app with ELASTICSEARCH_URL, and back it up with the snapshot API.