This is a skeleton template for Spin. This is an absolute barebones template to create a minimal Spin application.
- Gives you a fresh
.spin.yml
to work with - Shows you a very basic example of how to structure your project with
docker-compose.yml
,docker-compose.dev.yml
, anddocker-compose.prod.yml
- Demonstrates a minimal
install.sh
script for people who create templates with Spin - Allows the
traefik/whoami
container to be used as a simple demo service
You'll notice the template/
files are configured to run traefik/whoami
as a service. This is a simple container that will show you the name of the service in the URL.
- Notice how the
docker-compose.yml
file is configured to run thetraefik/whoami
container on port 80. - In
docker-compose.dev.yml
, we've added the name of "development" to the environment variableWHOAMI_NAME
. When you runspin up
, you'll notice the Name will be "development". - In
docker-compose.prod.yml
, we've added the name of "production" to the environment variableWHOAMI_NAME
. When you runspin up --prod
, you'll notice the Name will be "production".
Use these steps to use this template:
Make sure you have Spin installed: https://serversideup.net/open-source/spin/docs
spin new skeleton
spin up