23 lines
590 B
YAML
23 lines
590 B
YAML
services:
|
|
prometheus:
|
|
mem_limit: 1.5g
|
|
memswap_limit: 2.5g
|
|
image: prom/prometheus
|
|
container_name: prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
- '--storage.tsdb.retention.time=10y'
|
|
- '--storage.tsdb.retention.size=1GB'
|
|
volumes:
|
|
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
|
- /srv/appdata/prometheus/data:/prometheus
|
|
restart: unless-stopped
|
|
networks:
|
|
npm_proxy:
|
|
ipv4_address: 192.168.96.14
|
|
|
|
networks:
|
|
npm_proxy:
|
|
external: true
|