version: '2'
services:
  webspoon:
    image: hiromuhota/webspoon
    ports:
      - "8080:8080"
    volumes:
      - kettle:/home/tomcat/.kettle
      - pentaho:/home/tomcat/.pentaho
    environment:
      - "JAVA_OPTS=-Xms1024m -Xmx2048m"
volumes:
  kettle:
  pentaho:

version: '3'
services:
  webspoon:
    image: hiromuhota/webspoon
    ports:
      - "8080:8080"
    volumes:
      - kettle:/home/tomcat/.kettle
      - pentaho:/home/tomcat/.pentaho
    environment:
      - "JAVA_OPTS=-Xms1024m -Xmx2048m"
volumes:
  kettle:
  pentaho:

Change the compose file version to "3" as "docker deploy" only supports 3.0+
Change the compose file version to "3" as "docker deploy" only supports 3.0+
