version: '3.8'

services:
  matterbridge:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: kosmi-irc-relay
    restart: unless-stopped
    # command: ["-conf", "/app/matterbridge.toml", "--muted"]
    command: ["-conf", "/app/matterbridge.toml"]
    volumes:
      # Mount your configuration file
      - ./matterbridge.toml:/app/matterbridge.toml:ro,z
      # Optional: Mount a directory for logs
      - ./logs:/app/logs:z
    # If you need to expose any ports (e.g., for API or webhooks)
    # ports:
    #   - "4242:4242"
    environment:
      # Optional: Set timezone
      - TZ=America/New_York
    # Optional: Set memory limits (much lower now without browser!)
    # mem_limit: 128m
    # mem_reservation: 64m
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"

