Skip to content

Commit

Permalink
update container tags to :latest (#524)
Browse files Browse the repository at this point in the history
added volume: - /etc/localtime:/etc/localtime:ro to syncronize time & timezone to containers
  • Loading branch information
jerzerisz committed Jul 18, 2023
1 parent 7657dd9 commit 98c83ad
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
31 changes: 18 additions & 13 deletions templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,23 @@ networks:
services:
{% if domain_name_enable %}
nginx-proxy:
image: nginxproxy/nginx-proxy
image: nginxproxy/nginx-proxy:latest
restart: always
ports:
- "80:80"
networks:
- back-tier
- front-tier
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
{% endif %}

prometheus:
image: prom/prometheus:v2.25.2
image: prom/prometheus:latest
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
Expand All @@ -54,9 +56,10 @@ services:
{% endif %}

grafana:
image: grafana/grafana
image: grafana/grafana:latest
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
depends_on:
Expand All @@ -77,41 +80,43 @@ services:
{% endif %}

ping:
tty: true
stdin_open: true
image: prom/blackbox-exporter:latest
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- ./blackbox/config:/config
expose:
- 9115
ports:
- 9115:9115
image: prom/blackbox-exporter
restart: always
volumes:
- ./blackbox/config:/config
tty: true
stdin_open: true
command:
- '--config.file=/config/blackbox.yml'
networks:
- back-tier

speedtest:
image: miguelndecarvalho/speedtest-exporter:latest
restart: always
expose:
- 9798
ports:
- 9798:9798
image: miguelndecarvalho/speedtest-exporter
restart: always
networks:
- back-tier

nodeexp:
image: prom/node-exporter:latest
restart: always
privileged: true
image: prom/node-exporter
volumes:
- /etc/localtime:/etc/localtime:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
ports:
- 9100:9100
restart: always
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
Expand Down
5 changes: 3 additions & 2 deletions templates/pi-hole-docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
hostname: '{{ pihole_hostname }}'
ports:
- "53:53/tcp"
Expand All @@ -40,6 +41,7 @@ services:
- 127.0.0.1
- 8.8.8.8
volumes:
- /etc/localtime:/etc/localtime:ro
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
cap_add:
Expand All @@ -59,11 +61,11 @@ services:
- "{{ domain_prometheus }}.{{ domain_name }}:{{ ansible_facts['default_ipv4']['address'] }}"
{% endif %}
{% endif %}
restart: unless-stopped

pihole-exporter:
container_name: pihole-exporter
image: ekofr/pihole-exporter:latest
restart: unless-stopped
hostname: 'pihole-exporter'
ports:
- "9617:9617"
Expand All @@ -72,4 +74,3 @@ services:
PIHOLE_PASSWORD: '{{ pihole_password }}'
INTERVAL: '30s'
PORT: 9617
restart: unless-stopped

0 comments on commit 98c83ad

Please sign in to comment.