Last active
January 26, 2025 14:14
-
-
Save AjayPoshak/1fc2dccb6918175f51d448ef9996e151 to your computer and use it in GitHub Desktop.
logs server compose
This file contains hidden or 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
# docker-compose.yml for log-server | |
services: | |
loki: | |
image: grafana/loki:2.8.0 | |
ports: | |
- "3100:3100" | |
volumes: | |
- loki-data:/loki | |
restart: unless-stopped | |
grafana: | |
image: grafana/grafana:latest | |
ports: | |
- "3000:3000" | |
volumes: | |
- grafana-data:/var/lib/grafana | |
environment: | |
- GF_SECURITY_ADMIN_PASSWORD=<your-password> | |
restart: unless-stopped | |
prometheus: | |
image: prom/prometheus:latest | |
container_name: prometheus | |
restart: unless-stopped | |
volumes: | |
- ./prometheus.yml:/etc/prometheus/prometheus.yml | |
- prometheus_data:/prometheus | |
ports: | |
- "9090:9090" | |
volumes: | |
loki-data: | |
grafana-data: | |
prometheus_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With ability to monitor the "logs-server" node itself
docker-compose.yml
./prometheus.yml
./loki-config.yml