26 lines
501 B
YAML
26 lines
501 B
YAML
version: '3'
|
|
services:
|
|
exporter:
|
|
image: quay.io/martinhelmich/prometheus-nginxlog-exporter:v1
|
|
volumes:
|
|
- /var/log/nginx:/var/log/nginx
|
|
- exporter_config.yml:/etc/exporter_config.yml
|
|
command: ["/etc/exporter_config.yml"]
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.100
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 100M
|
|
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
config:
|
|
- subnet: $NET.0/24
|
|
|