# docker-compose.override.yml — LOCAL PYLOGUE DEV override
#
# Automatically applied by `docker compose up/build` (Docker Compose merges it).
# Bind-mounts ../ai-pylogue/src into each container and prepends it to PYTHONPATH
# so changes to pylogue source are picked up WITHOUT rebuilding or pip-installing.
#
# Chat history is shared with bare-metal via ./data/<agent>/ in the main compose file.
# Both `make ui` and `docker compose up` read/write the same DB files.
#
# To skip this override and use the GitHub-pinned version instead:
#   docker compose -f docker-compose.yml up --build

services:

  gmail-agent:
    volumes:
      - ../ai-pylogue/src:/pylogue-src:ro
    environment:
      PYTHONPATH: /pylogue-src:/app

  jira-agent:
    volumes:
      - ../ai-pylogue/src:/pylogue-src:ro
    environment:
      PYTHONPATH: /pylogue-src:/app

  chanakya-ui:
    volumes:
      - ../ai-pylogue/src:/pylogue-src:ro
    environment:
      PYTHONPATH: /pylogue-src:/app
