Giter Club home page Giter Club logo

opencodeco-stack's Introduction

Stack

🧱 Common infrastructure components in a single command.

Components

Component Description
stack mysql MySQL & phpMyAdmin (http://localhost:8031)
stack redis Redis & RedisInsight (http://localhost:8032)
stack mongo MongoDB & Mongo Express (http://localhost:8033)
stack kafka Kafka and UI for Apache Kafka (http://localhost:8037)
stack aws AWS services via LocalStack (http://localhost:4566)
stack o11y OpenTelemetry Collector, Jaeger UI, Prometheus & Grafana (see below)

Observability (o11y)

Component Description Port
OpenTelemetry Collector Jaeger HTTP 14268
OpenTelemetry Collector Statsd UDP 8125
OpenTelemetry Collector OTLP gRPC 4317
OpenTelemetry Collector OTLP HTTP 4318
Jaeger UI Traces http://localhost:8034
Prometheus Metrics http://localhost:8035
Grafana Dashboards & Alerts http://localhost:8036

Commands

Command Description
stack ls or stack ps List running containers
stack path Display where Stack is located
stack network Create the external opencodeco network

Getting started

Changing ports

Whether to avoid conflicts or to set a port number that fits best for your enviroment, you can create a .env file at stack path and change port numbers based on .env.dist.

Install

Just clone this repository:

git clone https://github.com/opencodeco/stack.git
cd stack
make install

Usage

You can use the built-in Shell Script helper:

stack <component> <docker compose command>

The <docker compose command> defaults to up -d, so:

stack mysql

Will be the same as:

stack mysql up -d

Which does a:

docker-compose -d mysql/docker-compose.yml up -d

Behind the scenes.

Which means you can combine any other valid Docker Compose command

Like:

stack mysql down

Or:

stack mysql logs -f

⚠️ Remember: this is suited for development environments only.

opencodeco-stack's People

Contributors

leocavalcante avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.