---
services:
  client-bot:
    build: .
    image: chess-calc
    container_name: chess-calc-client-bot
    restart: unless-stopped
    env_file: .env
    environment:
      - STATS_DB=/app/data/tournaments.db
    volumes:
      - bot-data:/app/data
    command: ["python3", "-m", "bots.client_bot"]

  admin-bot:
    build: .
    image: chess-calc
    container_name: chess-calc-admin-bot
    restart: unless-stopped
    env_file: .env
    environment:
      - STATS_DB=/app/data/tournaments.db
    volumes:
      - bot-data:/app/data
    command: ["python3", "-m", "bots.admin_bot"]

volumes:
  bot-data:
