Skip to content

Commit

Permalink
Bind volume and label logging for es
Browse files Browse the repository at this point in the history
  • Loading branch information
spyspoisspuis committed Mar 30, 2024
1 parent 46cde22 commit 664a703
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ services:

rabbitmq:
image: "rabbitmq:3.12-management"
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
Expand Down Expand Up @@ -227,13 +228,13 @@ services:

grafana:
image: grafana/grafana:10.3.5
container_name: grafana
ports:
- 3000:3000
volumes:
- ./monitoring/grafana/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- ./monitoring/grafana/main-dashboard.json:/var/lib/grafana/dashboards/dashboard.json
- ./monitoring/grafana/dashboard.yml:/etc/grafana/provisioning/dashboards/main.yml
- ./monitoring/grafana/grafana.ini:/etc/grafana/grafana.ini
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ services:
ports:
- 9200:9200
restart: always
labels:
logging: "promtail"
loggin_jobname: "containerlogs"
mem_limit: 1g
networks:
- dhammanava_network
Expand Down Expand Up @@ -213,6 +216,8 @@ services:
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
volumes:
- ./volumes/monitoring/loki:/loki
networks:
- dhammanava_network

Expand Down Expand Up @@ -251,6 +256,7 @@ services:
container_name: prometheus
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
- ./volumes/monitoring/prometheus:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
networks:
Expand Down

0 comments on commit 664a703

Please sign in to comment.