Add Spin to an Existing Project

Adding Spin to an existing project is easy. Everything works through the spin init command, we'll ask you a few questions, then you'll be on your way to shipping a 100% replicated application.

Install Spin

We have a number of ways to install Spin. Pick any one.

Initialize Spin

Run this command in the root of your project:

Initialize Spin

spin init

The wizard will ask you some questions and then you'll be on your way to shipping your application.

File Structure

Spin will create the following files & directories:

  • .infrastructure/
  • .spin.yml
  • .spin-inventory.ini
  • docker-compose.yml
  • docker-compose.dev.yml
  • docker-compose.ci.yml
  • docker-compose.prod.yml
  • Dockerfile (sometimes)

Spin will modify the following files:

  • .gitignore
  • .dockerignore

Next Steps

Prepare Your Servers for Spin →