2023-08-28 18:25:32 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
2024-06-15 15:59:53 +00:00
|
|
|
exporter:
|
|
|
|
image: quay.io/martinhelmich/prometheus-nginxlog-exporter:v1
|
2023-08-28 18:25:32 +00:00
|
|
|
volumes:
|
2024-06-15 15:59:53 +00:00
|
|
|
- /var/log/nginx:/var/log/nginx
|
|
|
|
- exporter_config.yml:/etc/exporter_config.yml
|
|
|
|
command: ["/etc/exporter_config.yml"]
|
|
|
|
restart: unless-stopped
|
2023-08-28 18:25:32 +00:00
|
|
|
networks:
|
|
|
|
default:
|
2024-01-02 16:50:14 +00:00
|
|
|
ipv4_address: $NET.100
|
2023-08-28 18:25:32 +00:00
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpus: '0.50'
|
|
|
|
memory: 100M
|
2024-06-15 15:59:53 +00:00
|
|
|
|
|
|
|
|
2023-08-28 18:25:32 +00:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipam:
|
|
|
|
config:
|
2024-01-02 16:50:14 +00:00
|
|
|
- subnet: $NET.0/24
|
2024-06-15 15:59:53 +00:00
|
|
|
|