Skip to content

Commit

Permalink
Merge pull request #316 from jembi/monitoring-hot-fix
Browse files Browse the repository at this point in the history
Make the docker info folder configurable through env variables
  • Loading branch information
drizzentic authored Jul 30, 2024
2 parents fd71a5d + 74af76b commit 7cfa3f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion monitoring/docker-compose.cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
replicas: 1
volumes:
- prometheus_data_backup:/prometheus
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${DOCKER_SOCK_FOLDER}:/var/run/docker.sock:ro
configs:
- target: /etc/prometheus/prometheus.yml
source: prometheus.yml
Expand Down
6 changes: 3 additions & 3 deletions monitoring/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ services:
user: root
volumes:
- prometheus-data:/prometheus
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${DOCKER_SOCK_FOLDER}:/var/run/docker.sock:ro
configs:
- target: /etc/prometheus/prometheus.yml
source: prometheus.yml
Expand All @@ -99,7 +99,7 @@ services:
- /:/rootfs:ro
- /var/run:/var/run
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker
- ${DOCKER_LIB_FOLDER}:/var/lib/docker
- /dev/disk/:/dev/disk:ro
deploy:
mode: global
Expand Down Expand Up @@ -133,7 +133,7 @@ services:
promtail:
image: ${PROMTAIL_IMAGE}
volumes:
- /var/lib/docker/containers:/host/containers
- ${DOCKER_LIB_FOLDER}/containers:/host/containers
- /var/log:/var/log:ro
configs:
- target: /etc/promtail/promtail-config.yml
Expand Down
4 changes: 3 additions & 1 deletion monitoring/package-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"MO_SECURITY_ADMIN_PASSWORD": "dev_password_only",
"MO_RETENTION_TIME": "15d",
"GF_SERVER_SERVE_FROM_SUB_PATH": "false",
"MINIO_BROWSER_REDIRECT_URL": ""
"MINIO_BROWSER_REDIRECT_URL": "",
"DOCKER_SOCK_FOLDER": "/var/run/docker.sock",
"DOCKER_LIB_FOLDER": "/var/lib/docker/"
}
}

0 comments on commit 7cfa3f1

Please sign in to comment.