diff --git a/install-glances-on-docker/docker-compose.yml b/install-glances-on-docker/docker-compose.yml new file mode 100644 index 0000000..03f9b4a --- /dev/null +++ b/install-glances-on-docker/docker-compose.yml @@ -0,0 +1,31 @@ +# Docker Compose file version +version: "3" + +# Define services to run +services: + # Service name: glances + glances: + # Name of the container + container_name: glances + + # Docker image to use + image: nicolargo/glances:3.4.0.3-full + + # Port mapping between host and container + ports: + - 7300:61208 + + # Environment variables + environment: + - TZ=UTC # Timezone + - GLANCES_OPT=-w # Glances option to run as a web server + + # Use the host's PID namespace + pid: host + + # Container restart policy + restart: unless-stopped + + # Volumes to mount into the container + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro # Docker socket for monitoring