Skip to content

This software checks which Docker images are used on the system, checks for updates and sends the information to a Notion database.

License

Notifications You must be signed in to change notification settings

Skyfay/Docker-to-Notion

Repository files navigation

Docker to Notion

preview

GitHub tag (latest SemVer pre-release) GitHub (Pre-)Release Date GitHub contributors GitHub commit activity (branch) GitHub last commit (by committer) Docker Pulls Discord GitHub

Docker image updates visualized and centralized in Notion.

Features ✨

  • Get Images from the Docker Socket and send Updates to Notion
  • Exclude Images
  • Set a specific sync interval

Usage 🐳

Via Docker Compose:

version: '3.8'

services:
  app:
    image: skyfay/docker-to-notion:latest
    container_name: docker-to-notion
    hostname: your-hostname # Not needed if you use linux and /etc/hostname
    environment:
      - NOTION_AUTH_TOKEN=your_notion_token
      - NOTION_DATABASE_ID=your_database_id
      - EXCLUDED_IMAGES=["skyfay/docker-to-notion"] # [] = exclude no images, ["image", "image2"] = exclude multiple images
      - SYNC_INTERVAL=300  # the lowest value is 300 / 5 minutes
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/hostname:/etc/hostname:ro # Linux only instead use docker hostname above
    restart: unless-stopped

Via Docker CLI:

docker run -it --rm \
  --name docker-to-notion \
  --hostname your-hostname \
  -e NOTION_AUTH_TOKEN=your_notion_token \
  -e NOTION_DATABASE_ID=your_database_id \
  -e EXCLUDED_IMAGES='["skyfay/docker-to-notion"]' \
  -e SYNC_INTERVAL=300 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /etc/hostname:/etc/hostname:ro \
  skyfay/docker-to-notion:latest

FAQ 💬

Create your Database in Notion

Create a Notion Database and add the following columns:

image

It doesn't matter in which order, but the names and types must match exactly.

Type Name
Title Container Name
Text Server Name
Text Image
Text Current Tag
Text Current Version
Text New Version
Text Local Digest
Text Remote Digest
Checkbox Needs Update
Checkbox Newer Tag Available

How to get your Notion token?

First of all go to your Notion intigrations: https://www.notion.so/profile/integrations

  1. Create a new intigration image

  2. Add a intigration name, select your workspace and save image

  3. Go to the intigration and copy your Notion Token = Internal Integration Secret image

How to get the Notion database ID

Visit Notion via Web Browser: https://www.notion.so/login

  1. Go to your Database and open it full screen and copy the database ID from your WEB URL image

  2. Add the intigration you created to the notion database to give access image

About

This software checks which Docker images are used on the system, checks for updates and sends the information to a Notion database.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •