services: << service_name >>: image: prom/prometheus:latest container_name: << service_name >> ports: - "<< port >>:9090" environment: - TZ=<< timezone >> command: - --config.file=/etc/prometheus/prometheus.yml - --storage.tsdb.retention.time=<< retention >> volumes: - << data_dir >>/<< service_name >>/config:/etc/prometheus - << service_name >>_data:/prometheus restart: unless-stopped volumes: << service_name >>_data: