services:
  worktracker:
    image: worktracker-dev:latest
    build:
      context: .
      dockerfile: Dockerfile
      target: dev
    container_name: worktracker-dev
    environment:
      ASPNETCORE_ENVIRONMENT: Development
      ASPNETCORE_URLS: http://+:8080
      CouchbaseLite__Directory: /data/couchbase
      UseHttpsRedirection: "false"
      DOTNET_USE_POLLING_FILE_WATCHER: "1"
    volumes:
      - ./:/workspace:cached
      - ./.docker-data/couchbase-dev:/data/couchbase
    working_dir: /workspace
    entrypoint: ["dotnet"]
    command: ["watch", "run", "--no-launch-profile", "--project", "WorkTracker.csproj", "--urls", "http://+:8080"]
    ports:
      - "8002:8080"
