/docker-swarm-stacks

Docker Swarm Stacks is a collection of pre-configured stack files designed to simplify the deployment of various services in a Docker Swarm cluster.

Docker Swarm Stacks

Docker Swarm Stacks is a collection of pre-configured stack files designed to simplify the deployment of various services in a Docker Swarm cluster.


Table of Contents


Installation

  1. Clone the repository:

    git clone https://github.com/felipefontoura/docker-swarm-stacks.git
    cd docker-swarm-stacks
  2. Ensure Docker Swarm is initialized:

    docker swarm init

Usage

  1. Navigate to project path:

    cd docker-swarm-stacks
  2. Adjust stack file:

    nano stacks/<category>/<stack>.yml
  3. Run the docker

    docker stack deploy --prune --resolve-image always --compose-file ./<category>/<stack>.yml stack
  4. Monitor your services:

    docker service ls

Stacks Available

Infrastructure

  • Traefik: Application proxy and load balancer.
  • Portainer: Platform manager for Docker and Swarm.

Databases

  • PostgreSQL: Relational database with advanced features.
  • Redis: In-memory key-value store for caching and real-time analytics.

Applications

  • Evolution API: API framework for evolutionary development.
  • N8n: Workflow automation tool.
  • RabbitMQ: Message broker for distributed systems, ideal for asynchronous communication and message queuing.
  • Typebot: Chatbot builder for interactive conversations.

Contributing

Contributions are welcome! If you want to contribute:

  1. Fork the repository.
  2. Add or update a stack.
  3. Submit a pull request.

For major changes, please open an issue first to discuss the proposal.


License

This repository is licensed under the MIT License. Use, modify, and distribute freely!