Goal
Know what a template creates in your account and how it fits with the apps you already run.Prerequisites
- A StackShift account
Workflow
1
Pick a template from Projects › New › Template, or from an application with Add a service › From a template.
2
Choose the application it goes into, or name a new one.
3
Pick a size for each service and decide whether it gets an address on the internet, when the template allows one.
4
Set it up. Each service appears on the application canvas, where you link your apps to it.
Services in your application
Every service a template adds is a normal service of that application. It has its own deploys, logs, variables and settings, and it sits on the application’s private network at <service>.<network>.stackshift.internal. Your apps in the same application reach it there; nothing outside the application does unless you give it a public address. The service runs a fixed, scanned image from StackShift’s catalogue, so there is no build step. Storage the template declares is a volume that survives restarts and redeploys.Private by default
- Services such as databases and search engines are private only: the template does not let them have a public address.
- Services with a web interface can be made public. Some start public, some start private with a switch you can turn on.
- A private service is still easy to use from your apps: link the app to it and it receives the variables it needs.
Self-hosted means yours to run
A template service is software you run in your application, not a managed StackShift product. Upgrades, tuning and backups are yours. Each template’s page says what that means for it, for example how to back up Elasticsearch with its snapshot API.Stacks set up from templates before
Stacks you set up from a template earlier keep running as stacks, with their update preview and rollback on the stack page. New setups always create services in an application.Expected result
The template’s services run inside your application as ordinary services you can open, redeploy, resize and delete.
Related guides
Set up a template in your application
Choose where it goes (an existing application, a new one, or next to one of your projects), where it runs, the size of each service and its public address, check what will run, then set it up.
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.