1.8 KiB
1.8 KiB
Dom
A notification scheduling system with Docker support.
Quick Start with Docker Compose
-
Build and start the service:
docker-compose up -d -
View logs:
docker-compose logs -f -
Stop the service:
docker-compose down
Configuration
The configuration file is located in the config/ directory and is mapped as a volume, allowing you to modify it without rebuilding the container.
Modifying Configuration
- Edit
config/config.jsonon your host machine - The changes will be automatically picked up by the container
- Restart the container if needed:
docker-compose restart
Configuration Options
ollama_endpoint: Ollama API endpointollama_model: Model to use for text generationsilent_start: Start time for silent period (HH:MM)silent_end: End time for silent period (HH:MM)timezone: Timezone for schedulingmin_interval: Minimum interval between notifications (minutes)max_interval: Maximum interval between notifications (minutes)bark_api_url: Bark notification service URLbark_device_key: Bark device keyntfy_api_url: Ntfy notification service URLntfy_topic: Ntfy topicntfy_access_token: Ntfy access tokentemplates_dir: Directory containing notification templates
Development
Local Development
python3 main.py
Building Docker Image
docker build -t dom .
Running with Docker
docker run -d \
--name dom \
-v $(pwd)/config:/app/config \
-v $(pwd)/templates:/app/templates \
dom
Volumes
./config:/app/config: Configuration directory (read-write)./templates:/app/templates: Templates directory (read-only)
Environment Variables
TZ: Timezone (default: Asia/Shanghai)