docker-compose.yml 477 B

1234567891011121314151617181920
  1. services:
  2. cognio:
  3. build: .
  4. container_name: cognio
  5. ports:
  6. - "8080:8080"
  7. volumes:
  8. - ./data:/app/data
  9. env_file:
  10. - .env
  11. environment:
  12. # Override specific paths if needed
  13. - DB_PATH=/app/data/memory.db
  14. restart: unless-stopped
  15. healthcheck:
  16. test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8080/health')"]
  17. interval: 30s
  18. timeout: 10s
  19. retries: 3
  20. start_period: 40s