Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,38 @@ lint:
clean:
docker compose -f docker-compose.base.yaml down -v

run target build="":
run target build="" profile="":
#!/usr/bin/env bash
set -e

BUILD_FLAG=""
if [ "{{build}}" == "build" ]; then

if [ "{{build}}" = "build" ]; then
BUILD_FLAG="--build"
fi

if [ "{{target}}" == "prod" ]; then
docker compose -f docker-compose.base.yaml -f docker-compose.prod.yaml up $BUILD_FLAG
PROFILE_FLAG=""

if [ "{{profile}}" = "observability" ]; then
PROFILE_FLAG="--profile observability"
fi

if [ "{{target}}" = "prod" ]; then
docker compose \
-f docker-compose.base.yaml \
-f docker-compose.prod.yaml \
$PROFILE_FLAG \
up $BUILD_FLAG
else
docker compose -f docker-compose.base.yaml -f docker-compose.dev.yaml up $BUILD_FLAG
docker compose \
-f docker-compose.base.yaml \
-f docker-compose.dev.yaml \
$PROFILE_FLAG \
up $BUILD_FLAG
fi

restart target:
docker compose -f docker-compose.base.yaml restart {{target}}

attach target:
docker compose -f docker-compose.base.yaml exec -it -t {{target}} /bin/bash
docker compose -f docker-compose.base.yaml exec -it {{target}} /bin/bash
4 changes: 4 additions & 0 deletions docker-compose.base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:

grafana:
image: grafana/grafana:12.1.1
profiles: ["observability"]

labels:
- "traefik.enable=true"
Expand Down Expand Up @@ -145,6 +146,7 @@ services:

alloy:
image: grafana/alloy:latest
profiles: ["observability"]

volumes:
- ./deploy/observability/grafana/config.alloy:/etc/alloy/config.alloy
Expand All @@ -162,6 +164,7 @@ services:

prometheus:
image: prom/prometheus
profiles: ["observability"]

command:
- "--config.file=/etc/prometheus/prometheus.yml"
Expand All @@ -178,6 +181,7 @@ services:

tempo:
image: grafana/tempo:latest
profiles: ["observability"]

command:
- "-target=all"
Expand Down
10 changes: 5 additions & 5 deletions example.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ host = "0.0.0.0"
port = 8000

[database]
username = "postgres"
password = "admin_password"
database = "conode"
username = "conode"
password = "conodeSecretPassword"
host = "persistence.literally.io"
database = "postgres"
port = 5432

[secrets]
Expand All @@ -17,5 +17,5 @@ issuer = "http://keycloak.conode.com/realms/conode"
audience = "conode"

[telemetry]
endpoint = "collector:4317"
enabled = true
endpoint = "alloy:4317"
enabled = false
Loading