Please take a look at this post about the migration from LAMP to Bluemix to have a good starting point.
You should also note that moving from an on-premise solution to a Cloud Foundry-based one requires some considerations regarding the local file system:
- Local file system storage is short-lived. When an application instance crashes or stops, the resources assigned to that instance are reclaimed by the platform including any local disk changes made since the app started. When the instance is restarted, the application will start with a new disk image. Although your application can write local files while it is running, the files will disappear after the application restarts.
- Instances of the same application do not share a local file system. Each application instance runs in its own isolated container. Thus if your application needs the data in the files to persist across application restarts, or the data needs to be shared across all running instances of the application, the local file system should not be used.
For this reason local file system should not be used.
Moreover, I think you should take a look at IBM Containers: A container is basically an application with all its dependencies, that is stored in a portable, platform-independent module (the container).