---
name: docker-compose-file-creator
description: "Generate a docker-compose.yml file to spin up multi-container applications. Use when the user wants help with Docker Compose File Creator. Related topics: devops, docker, coding."
---

# Docker Compose File Creator

Generate a docker-compose.yml file to spin up multi-container applications.

## How to use this skill

1. Ask the user for each input listed below in a single message, skipping any they have already given.
2. Where options are listed, offer them, but accept other answers too.
3. Fill the answers into the prompt template, then follow the completed prompt to produce the result.

## Inputs

- **Main App Service (Image/Build path)** (free text, e.g. "")
- **App Port Mapping (Host:Container)** (free text, e.g. "")
- **Database needed** (choose one: None, PostgreSQL, MySQL, MongoDB, Redis)
- **Other services to include** (choose any: Nginx Reverse Proxy, RabbitMQ, ElasticSearch, Mailhog)
- **Include persistent volumes for data?** (choose one: Yes, No)

## Prompt template

## Introduction
Quickly build a docker-compose file for your local environment.

## Application Stack
- Main App Service (Image/Build path): {{Main App Service (Image/Build path)}}
- App Port Mapping (Host:Container): {{App Port Mapping (Host:Container)}}

## Dependencies
- Database needed: {{Database needed}}
- Other services to include: {{Other services to include}}
- Include persistent volumes for data? {{Include persistent volumes for data?}}

---
**Goal**: Output a valid docker-compose.yml file with network and volume configurations.

---

Source: [Docker Compose File Creator on PromptBuild](https://promptbuild.io/prompt/wlWpzl9N9H1gptDR3BCg/docker-compose-file-creator)
