Export csv and json data from dokku-mongo service 1. exec mongoexport command inside the docker container follow the official documentation from MongoDB 2. copy it using docker cp <CONTAINER_ID>:<FILENAME> <INTENDED_DIR>