Collection of cookbooks for Podman Quadlets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
685 B

[Unit]
Description=Victoria Metrics agent
After=local-fs.target network.target
Wants=network.target
# Only start if the local configuration file exists
ConditionPathExists=/etc/quadlets/vmagent/vmagent.local.env
[Container]
ContainerName=vmagent
# Image
Image=quay.io/victoriametrics/vmagent:latest
AutoUpdate=registry
# Security
User=10025
Group=10000
# Storage
Volume=/var/lib/quadlets/vmagent:/var/lib/vmagent:Z
Volume=/etc/quadlets/vmagent/conf.d:/etc/vmagent:ro
# Network
Network=host
# Configuration
EnvironmentFile=/etc/quadlets/vmagent/vmagent.global.env
EnvironmentFile=/etc/quadlets/vmagent/vmagent.local.env
Exec=-envflag.enable
[Install]
WantedBy=multi-user.target