• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글
질문

DOCKER watchertower 설정

지나가는_문과생 지나가는_문과생 260 1

0

5

안녕하세요 지나가는 문과생입니다 

 

OS : dsm7.2

빌드 내역

 

version: '3.7'

services:
  watchtower:
    container_name: watchtower
    build:
      context: ./
      dockerfile: dockerfiles/Dockerfile.dev-self-contained
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    ports:
      - 8088:8080
    command: --interval 80 --http-api-metrics --http-api-token demotoken --debug prometheus grafana parent child
  prometheus:
    container_name: prometheus
    image: prom/prometheus
    volumes:
      - ./prometheus/:/etc/prometheus/
      - prometheus:/prometheus/
    ports:
      - 9090:9090
  grafana:
    container_name: grafana
    image: grafana/grafana
    ports:
      - 3000:3000
    environment:
      GF_INSTALL_PLUGINS: grafana-clock-panel,grafana-simple-json-datasource
    volumes:
      - grafana:/var/lib/grafana
      - ./grafana:/etc/grafana/provisioning
  parent:
    image: nginx
    container_name: parent
  child:
    image: nginx:alpine
    labels:
      com.centurylinklabs.watchtower.depends-on: parent
    container_name: child

volumes:
  prometheus: {}
  grafana: {}
 
 
도커 실행은 되는데.. 업데이트를 하지 않고 있네요
 
로그보시고  조언 부탁드립니다 

 htmlwatchtower
242.37 KB
 

 

신고공유스크랩
5
1등
purndal 2024.04.26. 12:36

저의 docker 코드를 남겨둡니다. 

 

version: "3"
services:
  watchtower:
    image: containrrr/watchtower
    container_name: watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      TZ: Asia/Seoul
      WATCHTOWER_LIFECYCLE_HOOKS: "True"
      #WATCHTOWER_NOTIFICATION_TITLE_TAG: Mini PC
      #WATCHTOWER_NOTIFICATIONS: shoutrrr
      #WATCHTOWER_NOTIFICATION_URL: telegram://[코드]@telegram/?channels=[채널숫자]
      WATCHTOWER_DEBUG: "true"
      WATCHTOWER_CLEANUP: "true"
      #WATCHTOWER_POLL_INTERVAL: 86400
      WATCHTOWER_SCHEDULE: 0 0 20 * * 0
    restart: unless-stopped
networks: {}

 

WATCHTOWER_SCHEDULE: 0 0 20 * * 0 

 

이 부분이 스케줄이며.. 매주 토요일인가.. 일요일인가.. 새벽에 업데이트를 하고 있습니다. 

업데이트 후 남겨져 있는 이미지 파일하고 제거를 시켜줍니다. 

 

WATCHTOWER_CLEANUP: "true"

 

제외는 제외 시킬 docker compose 에 

 

    labels:
      - com.centurylinklabs.watchtower.enable=false

 

를 남겨두면 자동으로 업데이트 하지 않더군요.

3등
훔친수건 2024.04.26. 17:47

로그를 보면 정상 작동하고 있습니다.
마지막 체크때 이미지가 모두 최신이라네요.

 

2024/04/26 12:15:06 stderr  time="2024-04-26T03:15:06Z" level=debug msg="No new images found for /parent"
2024/04/26 12:15:08 stderr  time="2024-04-26T03:15:08Z" level=debug msg="No new images found for /prometheus"
2024/04/26 12:15:09 stderr  time="2024-04-26T03:15:09Z" level=debug msg="No new images found for /grafana"
2024/04/26 12:15:10 stderr  time="2024-04-26T03:15:10Z" level=debug msg="No new images found for /child
2024/04/26 12:15:10 stderr  time="2024-04-26T03:15:10Z" level=debug msg="Scheduled next run: 2024-04-26 03:16:25 +0000 UTC" 

 

개인적으로 80초는 너무 잦은 체크가 아닐까 싶네요.

기본값인 24시간이면 충분해 보입니다.

 

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story
번호 분류 제목 글쓴이 날짜 조회 추천
공지 정보 DSM 7.2v) Mshell로 헤놀로지 부트로더 빌드하기. 63 달소 23.05.29.01:57 25980 +25
공지 정보 DSM 7.2v) ARPL-i18n(rr)으로 헤놀로지 부트로더 빌드하기. 73 달소 23.05.23.23:58 27525 +23
가이드 나만의 구독 관리하기 Wallos 서버 구축하기.(DSM) 4 달소 5일 전17:30 420 +3
업데이트 m.2 nvme 단독설치(DSM 및 볼륨)를 위한 nvmesystem addon for mshell 배포. 19 화정큐삼 24.05.13.21:48 460 +8
업데이트 nvmesystem addon for mshell 을 테스트 중입니다. 5 화정큐삼 24.05.13.12:06 210 +7
5192 질문
image
Ryuon 8시간 전00:45 59 0
5191 질문
normal
vkfltk 15시간 전17:28 123 0
5190 질문
normal
지나가는_문과생 16시간 전16:36 126 0
5189 질문
normal
타이푼 1일 전09:34 99 0
5188 질문
image
쵸리 2일 전01:38 135 0
5187 질문
normal
giogo 2일 전21:46 55 0
5186 질문
normal
잿빛미소 2일 전16:48 129 0
5185 질문
normal
해피조이 2일 전15:47 80 0
5184 질문
normal
서브어린이 2일 전12:46 134 0
5183 질문
image
나스나 2일 전12:23 114 0
5182 후기
image
kmw_ 2일 전11:22 359 0
5181 질문
image
냉동개구리 3일 전02:42 110 0
5180 질문
normal
Minimo 3일 전23:56 77 0
5179 질문
image
냉동개구리 3일 전22:26 255 0
5178 질문
file
njsc 3일 전19:52 107 0
5177 질문
normal
kmw_ 3일 전17:00 160 0
5176 잡담
image
냉동개구리 3일 전16:58 205 0
5175 질문
normal
Oxopid 3일 전13:05 151 0
5174 질문
normal
hashmap 3일 전10:25 195 0
5173 질문
image
Kallystar 4일 전02:04 195 0