87 lines
2.1 KiB
YAML
87 lines
2.1 KiB
YAML
|
version: '3'
|
||
|
|
||
|
services:
|
||
|
clone_config:
|
||
|
image: alpine
|
||
|
volumes:
|
||
|
- lgtm-config:/lgtm-config
|
||
|
command:
|
||
|
- /bin/sh
|
||
|
- -c
|
||
|
- |
|
||
|
apk update
|
||
|
apk add git
|
||
|
cd /lgtm-config
|
||
|
if [ -d "lgtm-stack" ]; then cd lgtm-stack && git pull; else git clone "https://dev-gitea.sinetcon.com/pglaum/lgtm-stack"; fi
|
||
|
|
||
|
jaeger:
|
||
|
image: jaegertracing/all-in-one:latest
|
||
|
environment:
|
||
|
- COLLECTOR_OTLP_ENABLED=true
|
||
|
- LOG_LEVEL=debug
|
||
|
restart: unless-stopped
|
||
|
networks:
|
||
|
- traefik-public
|
||
|
|
||
|
grafana:
|
||
|
image: grafana/grafana-oss
|
||
|
volumes:
|
||
|
- grafana-data:/var/lib/grafana
|
||
|
restart: unless-stopped
|
||
|
user: '0'
|
||
|
networks:
|
||
|
- traefik-public
|
||
|
|
||
|
loki:
|
||
|
image: grafana/loki:2.8.0
|
||
|
ports:
|
||
|
- "3100:3100"
|
||
|
volumes:
|
||
|
- /var/lib/docker/volumes/lgtm-config/_data/loki.yaml:/etc/loki/local-config.yaml
|
||
|
command: -config.file=/etc/loki/local-config.yaml
|
||
|
networks:
|
||
|
- traefik-public
|
||
|
depends_on:
|
||
|
clone_config:
|
||
|
condition: service_completed_successfully
|
||
|
|
||
|
promtail:
|
||
|
image: grafana/promtail:2.8.0
|
||
|
volumes:
|
||
|
- /var/lib/docker/volumes/lgtm-config/_data/promtail.yaml:/etc/promtail/config.yml
|
||
|
command: -config.file=/etc/promtail/config.yml
|
||
|
networks:
|
||
|
- traefik-public
|
||
|
depends_on:
|
||
|
clone_config:
|
||
|
condition: service_completed_successfully
|
||
|
|
||
|
prometheus:
|
||
|
image: prom/prometheus:latest
|
||
|
restart: unless-stopped
|
||
|
volumes:
|
||
|
- prometheus-data:/prometheus
|
||
|
- /var/lib/docker/volumes/lgtm-config/_data/prometheus.yml:/etc/prometheus/prometheus.yml
|
||
|
command:
|
||
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||
|
- '--storage.tsdb.path=/prometheus'
|
||
|
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
||
|
- '--web.console.templates=/etc/prometheus/consoles'
|
||
|
- '--web.enable-lifecycle'
|
||
|
networks:
|
||
|
- traefik-public
|
||
|
user: '0'
|
||
|
depends_on:
|
||
|
clone_config:
|
||
|
condition: service_completed_successfully
|
||
|
|
||
|
volumes:
|
||
|
grafana-data:
|
||
|
prometheus-data:
|
||
|
lgtm-config:
|
||
|
external: True
|
||
|
|
||
|
networks:
|
||
|
traefik-public:
|
||
|
external: true
|