.deploystack Directory Reference

The .deploystack directory in your repository contains configuration files that DeployStack uses to generate and maintain your Infrastructure as Code templates. Creating this repo allows you to enable the lifecycle of IaC. The deploystack configurations repo only makes sense if you also install DeployStack GitHub app. Otherwise, changes to DeployStack backend will not be recognized.

Note
šŸ“
.deploystack directory is optional. You don't need to create it to submit your repository to deploystack.io.

Directory Structure

bash
.deploystack/
ā”œā”€ā”€ docker-compose.yml  # Docker Compose configuration
ā”œā”€ā”€ docker-run.txt      # Docker run command
ā”œā”€ā”€ env                 # Environment variables (optional)

Configuration Files

DeployStack Configuration File

Please read more at DeployStack Configuration File Reference.

Docker Configuration

Choose one of the following:

  • docker-compose.yml - Standard Docker Compose configuration
  • docker-run.txt - Single Docker run command

Example docker-compose.yml:

yaml
version: '3'
services:
  web:
    image: nginx:alpine
    ports:
      - "80:80"

Example docker-run.txt:

bash
docker run -d -p 80:80 nginx:alpine

Environment Variables

Please read more from our environment variables page.

Automatic Updates

When the DeployStack GitHub App is installed:

  1. Changes to specific (docker-compose.yml & docker-run.txt) file in .deploystack/ trigger template updates
  2. Updates only process when changes occur on the default branch
  3. New templates are generated and stored in the deploy-templates repository

Important Notes