lightfm:
  build: .
  # Uncomment this to mount your local version
  # of the LightFM code.
  # volumes:
  #   - .:/home/lightfm/
  ports:
  - "8888:8888"

version: '3'

services:
  lightfm:
    build: .
    # Uncomment this to mount your local version
    # of the LightFM code.
    # volumes:
    #   - .:/home/lightfm/
    ports:
    - "8888:8888"

Upgrade from depreacted version 1 compose
Upgrade from depreacted version 1 compose
