Skip to content

DanijelRadakovic/dojo

Repository files navigation

Dojo

Application that manages weapons in dojo. Data are stored in relational database POSTGRES 13.

Build the image:

docker buildx build -t danijelradakovic/dojo \
  --target release-alpine \
  --build-arg SRC=cmd/dojo/main.go .

Building container images can also be achieved using docker compose:

docker compose --env-file env.conf build

Generate docker compose configuration with specified environment variables:

docker compose --env-file env.conf config

Provision the infrastructure:

docker compose --env-file env.conf up

Destroy the provisioned infrastructure:

docker compose --env-file env.conf down -v

Test the application:

curl -X POST "http://localhost:8080/weapon?id=0&weapon=katana"
curl -X POST "http://localhost:8080/weapon?id=1&weapon=ninjaStar"
curl -X POST "http://localhost:8080/weapon?id=2&weapon=ninjaSword"

curl "http://localhost:8080/weapon"

Monitoring

Create the monitoring stack with docker compose:

pushd monitoring
docker compose up
popd

Take the IP address of fluent-bit container and replace the value of FLUENT_BIT_ADDRESS variable in env.conf file:

docker network inspect monitoring

Create the application stack with docker compose:

docker compose --env-file env.conf up

Tracing

tracing

Logs

logs

Metrics

metrics

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published