Add restart-policy to containers that need it
oopsie
This commit is contained in:
parent
68e8f35064
commit
702a4c5f4c
@ -8,6 +8,7 @@
|
|||||||
ansible.builtin.docker_container:
|
ansible.builtin.docker_container:
|
||||||
name: prometheus-psql-exporter
|
name: prometheus-psql-exporter
|
||||||
image: quay.io/prometheuscommunity/postgres-exporter
|
image: quay.io/prometheuscommunity/postgres-exporter
|
||||||
|
restart_policy: unless-stopped
|
||||||
env:
|
env:
|
||||||
DATA_SOURCE_URI: "10.0.0.2:5432/postgres"
|
DATA_SOURCE_URI: "10.0.0.2:5432/postgres"
|
||||||
DATA_SOURCE_USER: "nagios"
|
DATA_SOURCE_USER: "nagios"
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
ansible.builtin.docker_container:
|
ansible.builtin.docker_container:
|
||||||
name: prometheus-node-exporter
|
name: prometheus-node-exporter
|
||||||
image: quay.io/prometheus/node-exporter:latest
|
image: quay.io/prometheus/node-exporter:latest
|
||||||
|
restart_policy: unless-stopped
|
||||||
command:
|
command:
|
||||||
- '--path.rootfs=/host'
|
- '--path.rootfs=/host'
|
||||||
- '--collector.interrupts'
|
- '--collector.interrupts'
|
||||||
@ -53,6 +54,7 @@
|
|||||||
ansible.builtin.docker_container:
|
ansible.builtin.docker_container:
|
||||||
name: prometheus-cadvisor-exporter
|
name: prometheus-cadvisor-exporter
|
||||||
image: gcr.io/cadvisor/cadvisor:latest
|
image: gcr.io/cadvisor/cadvisor:latest
|
||||||
|
restart_policy: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 9101:8080/tcp
|
- 9101:8080/tcp
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
|
restart_policy: unless-stopped
|
||||||
user: 5476:5476
|
user: 5476:5476
|
||||||
env:
|
env:
|
||||||
TZ: "America/Chicago"
|
TZ: "America/Chicago"
|
||||||
@ -55,6 +56,7 @@
|
|||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
name: prometheus-blackbox
|
name: prometheus-blackbox
|
||||||
image: quay.io/prometheus/blackbox-exporter:latest
|
image: quay.io/prometheus/blackbox-exporter:latest
|
||||||
|
restart_policy: unless-stopped
|
||||||
user: 5476:5476
|
user: 5476:5476
|
||||||
command:
|
command:
|
||||||
- '--config.file=/config/blackbox.yml'
|
- '--config.file=/config/blackbox.yml'
|
||||||
|
Loading…
Reference in New Issue
Block a user