---
# THIS IS FOR DEVELOPMENT PURPOSES
services:
  krawl:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: krawl-server
    ports:
      - "5000:5000"
    environment:
      - CONFIG_LOCATION=config.yaml
      # set this to change timezone, alternatively mount /etc/timezone or /etc/localtime based on the time system management of the host environment
      # - TZ=${TZ}
    volumes:
      - ./wordlists.json:/app/wordlists.json:ro
      - ./config.yaml:/app/config.yaml:ro
      - ./logs:/app/logs
      - ./exports:/app/exports
      - ./data:/app/data
      - ./backups:/app/backups
    restart: unless-stopped
    develop:
      watch:
        - path: ./Dockerfile
          action: rebuild
        - path: ./src/
          action: rebuild
        - path: ./docker-compose.yaml
          action: rebuild
