Skip to content

agentops/chaos-engineering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Infrastructure Stack

This directory contains a local development infrastructure stack using Docker Compose. It includes all necessary services for running and testing microservices locally.

Services Included

Prerequisites

  • Docker and Docker Compose
  • Add to /etc/hosts:
127.0.0.1 service-a.localhost
127.0.0.1 service-b.localhost
127.0.0.1 grafana.localhost

Usage

Start the stack:

./scripts/up.sh

Stop and clean up:

./scripts/down.sh

View logs:

./scripts/logs.sh

Testing the Services

  1. Access service-a: http://service-a.localhost
  2. Access service-b: http://service-b.localhost
  3. View traces in Jaeger: http://localhost:16686
  4. Check metrics in Grafana: http://grafana.localhost

Directory Structure

infrastructure-local/
├── compose/          # Docker Compose files
├── configs/          # Configuration for services
├── services/         # Example microservices
└── scripts/          # Helper scripts

Adding New Services

  1. Add service definition to compose/docker-compose.yml
  2. Add Traefik configuration if needed in configs/traefik/dynamic.yml
  3. Add Prometheus scrape config in configs/prometheus/prometheus.yml
  4. Start the stack with ./scripts/up.sh

Troubleshooting

  1. Check service logs: ./scripts/logs.sh
  2. Verify Docker network: docker network ls
  3. Check Traefik dashboard: http://localhost:8080
  4. Verify Consul service registration: http://localhost:8500

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors