services:
  projeto-y:
    build: .
    ports:
      - "9000:7860"
    environment:
      - SECRET_KEY=${SECRET_KEY}
      - DATABASE_PASSWORD=${DATABASE_PASSWORD}
      - OPENAI_API_KEY=${OPENAI_API_KEY}
      # - PYTHONPATH=/app:$PYTHONPATH
    env_file:
      - .env
    volumes:
      - type: bind
        source: .venv
        target: /app/.venv
        # target: /usr/lib/python3.12/site-packages
volumes:
  myapp:
    # watch:
    # develop:
    #   watch:
    #     - action: sync
    #       path: ./
    #       target: /app
    #       ignore:
    #         - .venv/
    #     - action: rebuild
    #       path: requirements.txt
    #     - action: rebuild
    #       path: .venv/