Move watchtower to monitoring stack. Cleanup APC image.
This commit is contained in:
@@ -39,20 +39,3 @@ services:
|
|||||||
- "traefik.http.routers.semaphore.service=semaphore"
|
- "traefik.http.routers.semaphore.service=semaphore"
|
||||||
- "traefik.http.services.semaphore.loadbalancer.server.port=3000"
|
- "traefik.http.services.semaphore.loadbalancer.server.port=3000"
|
||||||
|
|
||||||
watchtower:
|
|
||||||
image: containrrr/watchtower
|
|
||||||
container_name: watchtower
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
volumes:
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
environment:
|
|
||||||
WATCHTOWER_INCLUDE_STOPPED: true
|
|
||||||
WATCHTOWER_MONITOR_ONLY: true
|
|
||||||
WATCHTOWER_SCHEDULE: "0 20 8 * * *"
|
|
||||||
WATCHTOWER_NOTIFICATIONS: "shoutrrr"
|
|
||||||
WATCHTOWER_NOTIFICATION_URL: "mattermost://watchtower@cs-mm.ddnss.de/og4ckuqet7fafb8kjuaigzuh7c"
|
|
||||||
WATCHTOWER_NOTIFICATION_TEMPLATE: "{{range .}}{{.Time.Format \"2006-01-02 15:04:05\"}} ({{.Level}}): {{.Message}}{{println}}{{end}}"
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,6 @@ RUN apk add --no-cache libusb apcupsd apcupsd-doc apcupsd-webif apache2
|
|||||||
|
|
||||||
COPY apache2.conf /etc/apache2/httpd.conf
|
COPY apache2.conf /etc/apache2/httpd.conf
|
||||||
COPY apc-deamon.conf /etc/apcupsd/apcupsd.conf
|
COPY apc-deamon.conf /etc/apcupsd/apcupsd.conf
|
||||||
# COPY dockerrun.sh /entrypoint/run.sh
|
|
||||||
|
|
||||||
# RUN [ "/sbin/apcupsd" ]
|
|
||||||
#RUN /usr/bin/fcgiwrap -f -s unix:/var/run/fcgiwrap.socket & sleep 1
|
|
||||||
#RUN [ "chown", "nginx:nginx", "/var/run/fcgiwrap.socket" ]
|
|
||||||
# RUN [ "nginx", "-g", "daemon off;" ]
|
|
||||||
|
|
||||||
# RUN chmod +x /entrypoint/run.sh
|
|
||||||
|
|
||||||
VOLUME [ "/etc/apcupsd" ]
|
|
||||||
|
|
||||||
EXPOSE 80 3551/tcp 3551/udp
|
EXPOSE 80 3551/tcp 3551/udp
|
||||||
|
|
||||||
|
|||||||
@@ -3,40 +3,29 @@ version: "3.9"
|
|||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
internal:
|
monitoring:
|
||||||
external: true
|
name: monitoring
|
||||||
|
external: false
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
netdataconfig:
|
|
||||||
name: netdataconfig
|
|
||||||
netdatalib:
|
|
||||||
name: netdatalib
|
|
||||||
netdatacache:
|
|
||||||
name: netdatacache
|
|
||||||
apc:
|
|
||||||
name: apc
|
|
||||||
telegraf:
|
telegraf:
|
||||||
name: telegraf
|
name: telegraf
|
||||||
influxdb:
|
influx:
|
||||||
name: influxdb
|
name: influx
|
||||||
prometheus-config:
|
influx-etc:
|
||||||
name: prometheus-config
|
name: influx-etc
|
||||||
grafana-data:
|
|
||||||
name: grafana-data
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
apc:
|
apc:
|
||||||
build: .
|
build: .
|
||||||
container_name: apc
|
container_name: apc
|
||||||
hostname: apc.lan
|
hostname: apc
|
||||||
tty: true
|
tty: true
|
||||||
devices:
|
devices:
|
||||||
- /dev/usb/hiddev0
|
- /dev/usb/hiddev0
|
||||||
volumes:
|
|
||||||
- apc:/etc/apcupsd
|
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- internal
|
- monitoring
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.apc.rule=Host(`apc.lan`)"
|
- "traefik.http.routers.apc.rule=Host(`apc.lan`)"
|
||||||
@@ -51,8 +40,9 @@ services:
|
|||||||
telegraf:
|
telegraf:
|
||||||
image: telegraf:alpine
|
image: telegraf:alpine
|
||||||
container_name: telegraf
|
container_name: telegraf
|
||||||
|
hostname: telegraf
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- monitoring
|
||||||
user: telegraf:998
|
user: telegraf:998
|
||||||
volumes:
|
volumes:
|
||||||
- telegraf:/etc/telegraf/
|
- telegraf:/etc/telegraf/
|
||||||
@@ -60,15 +50,16 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- influxdb
|
- influxdb
|
||||||
|
|
||||||
influxdb:
|
influx:
|
||||||
image: influxdb:alpine
|
image: influxdb:alpine
|
||||||
container_name: influxdb
|
container_name: influx
|
||||||
env_file: ../.env
|
hostname: influx
|
||||||
volumes:
|
volumes:
|
||||||
- influxdb:/var/lib/influxdb
|
- influx:/var/lib/influxdb2
|
||||||
|
- influx-etc:/etc/influxdb2
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
- internal
|
- monitoring
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
@@ -77,3 +68,21 @@ services:
|
|||||||
- "traefik.http.routers.influx.service=influx"
|
- "traefik.http.routers.influx.service=influx"
|
||||||
- "traefik.http.services.influx.loadbalancer.server.port=8086"
|
- "traefik.http.services.influx.loadbalancer.server.port=8086"
|
||||||
|
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower
|
||||||
|
container_name: watchtower
|
||||||
|
hostname: watchtower
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- monitoring
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
WATCHTOWER_INCLUDE_STOPPED: true
|
||||||
|
WATCHTOWER_MONITOR_ONLY: true
|
||||||
|
WATCHTOWER_SCHEDULE: "0 20 8 * * *"
|
||||||
|
WATCHTOWER_NOTIFICATIONS: "shoutrrr"
|
||||||
|
WATCHTOWER_NOTIFICATION_URL: "mattermost://watchtower@cs-mm.ddnss.de/og4ckuqet7fafb8kjuaigzuh7c"
|
||||||
|
WATCHTOWER_NOTIFICATION_TEMPLATE: "{{range .}}{{.Time.Format \"2006-01-02 15:04:05\"}} ({{.Level}}): {{.Message}}{{println}}{{end}}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user