Dateien nach "install-glances-on-portainer" hochladen
This commit is contained in:
parent
8bc8a6f0fe
commit
93485d0d64
|
@ -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=${TZ} # 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
|
Loading…
Reference in New Issue