Docker image updates visualized and centralized in Notion.
- Get Images from the Docker Socket and send Updates to Notion
- Exclude Images
- Set a specific sync interval
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
Create a Notion Database and add the following columns:
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 |
First of all go to your Notion intigrations: https://www.notion.so/profile/integrations
Visit Notion via Web Browser: https://www.notion.so/login