A custom iCalendar generator for bgm.tv
version: '3'
services:
bgm-calendar:
image: keocheung/bgm-calendar # Or ghcr.io/keocheung/bgm-calendar
container_name: bgm-calendar
volumes:
- /etc/localtime:/etc/localtime:ro
network_mode: bridge
ports:
- 8080:8080
environment:
- BGM_CALENDAR_PORT=8080 # Optional. Default is 8080
- BGM_CALENDAR_PREFER_CN_NAME=1 # Optional. Default is false / 0
- BANGUMI_API_HOST=api.bgm.tv # Optional. Default is api.bgm.tv
- BANGUMI_ACCESS_TOKEN=asd123 # Optional. Default is empty. Create here: https://next.bgm.tv/demo/access-token
- HTTP_PROXY=http://127.0.0.1:9090 # Optional. Default is empty
- HTTPS_PROXY=http://127.0.0.1:9090 # Optional. Default is empty
- NO_PROXY=example.com,192.168.0.0/16 # Optional. Default is empty
restart: unless-stopped
go install github.com/keocheung/bgm-calendar@latest
git clone https://github.com/keocheung/bgm-calendar
cd bgm-calendar
go build -o bgm-calendar .
git clone https://github.com/keocheung/bgm-calendar
cd bgm-calendar
docker build -t bgm-calendar:latest .
curl http://localhost:8080/users/{username}/games.ics