-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #384 from napalm684/dev
- Loading branch information
Showing
18 changed files
with
3,048 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,87 @@ | ||
version: "3.7" | ||
version: "3.8" | ||
services: | ||
web: | ||
container_name: tagzapp.web | ||
hostname: tagzappweb | ||
build: | ||
dockerfile: ./src/TagzApp.Blazor/dockerfile | ||
context: . | ||
ports: | ||
- "80" # runs on a random local port. Change to "8080:80" if you want to run on localhost:8080 | ||
env_file: | ||
# when .env values are used in this docker-compose file like 'hostname: $hostname' for example it is strongly recommended to inject them by referencing them like 'docker compose up --env-file .env' or 'docker compose up --env-file .env.local' | ||
- .env | ||
- .env.local | ||
# TODO: This was not implemented yet... | ||
# web: | ||
# container_name: tagzapp.web | ||
# hostname: tagzappweb | ||
# build: | ||
# dockerfile: ./src/TagzApp.Blazor/dockerfile | ||
# context: . | ||
# ports: | ||
# - "80" # runs on a random local port. Change to "8080:80" if you want to run on localhost:8080 | ||
# env_file: | ||
# # when .env values are used in this docker-compose file like 'hostname: $hostname' for example it is strongly recommended to inject them by referencing them like 'docker compose up --env-file .env' or 'docker compose up --env-file .env.local' | ||
# - .env | ||
# - .env.local | ||
# depends_on: | ||
# - otelcol | ||
|
||
grafana: | ||
image: grafana/grafana:10.3.1 | ||
environment: | ||
- "GF_AUTH_DISABLE_LOGIN_FORM=true" | ||
- "GF_AUTH_ANONYMOUS_ENABLED=true" | ||
- "GF_AUTH_ANONYMOUS_ORG_ROLE=Admin" | ||
- "GF_FEATURE_TOGGLES_ENABLE=traceToMetrics" | ||
volumes: | ||
- ./observability-config/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml | ||
- ./observability-config/grafana-dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml | ||
- ./observability-config/dashboards:/var/lib/grafana/dashboards | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- tempo | ||
- loki | ||
|
||
otelcol: | ||
image: otel/opentelemetry-collector-contrib:0.95.0 | ||
deploy: | ||
resources: | ||
limits: | ||
memory: 125M | ||
restart: unless-stopped | ||
command: [ "--config=/etc/otelcol-config.yaml" ] | ||
volumes: | ||
- ./observability-config/otelcol-config.yaml:/etc/otelcol-config.yaml | ||
ports: | ||
- "4317:4317" # OTLP gRPC receiver | ||
- "4318:4318" # OTLP HTTP receiver | ||
|
||
loki: | ||
image: grafana/loki:2.9.4 | ||
ports: | ||
- "3100" | ||
command: -config.file=/etc/loki/local-config.yaml | ||
volumes: | ||
- ./observability-config/loki-data:/loki | ||
depends_on: | ||
- otelcol | ||
|
||
tempo: | ||
image: grafana/tempo:2.3.1 | ||
command: [ "-config.file=/etc/tempo.yaml" ] | ||
volumes: | ||
- ./observability-config/tempo.yaml:/etc/tempo.yaml | ||
- ./observability-config/tempo-data:/tmp/tempo | ||
ports: | ||
- "14268" # jaeger ingest | ||
- "3200" # tempo | ||
- "4317" # otlp grpc | ||
- "4318" # otlp http | ||
- "9411" # zipkin | ||
depends_on: | ||
- prometheus | ||
- loki | ||
|
||
prometheus: | ||
image: prom/prometheus:v2.50.0 | ||
command: | ||
- --config.file=/etc/prometheus.yaml | ||
- --web.enable-remote-write-receiver | ||
- --enable-feature=exemplar-storage | ||
- --enable-feature=promql-experimental-functions | ||
volumes: | ||
- ./observability-config/prometheus.yaml:/etc/prometheus.yaml | ||
- ./observability-config/prometheus-data:/prometheus | ||
ports: | ||
- "9090:9090" |
Oops, something went wrong.