From 37fa62e3df639f9c9993188ecc2ddd303c3c6779 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 20 Jul 2023 13:48:22 +0900 Subject: [PATCH] Update README.adoc --- README.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.adoc b/README.adoc index 1dc1a6a..40f128d 100644 --- a/README.adoc +++ b/README.adoc @@ -59,12 +59,12 @@ FFMPEG API is provided as Docker image for easy consumption. * When running on Docker/Kubernetes, port binding can be different than default 3000. Use _EXTERNAL_PORT_ to set up external port in returned URLs in extracted images JSON: ** `docker run -it --rm -p 3001:3000 -e EXTERNAL_PORT=3001 kazhar/ffmpeg-api` -=== Example of my case +=== In my case (Recommended) ```bash -sudo mkdir /tmp/ffmpeg-api -sudo chmod 777 /tmp/ffmpeg-api -sudo docker run -d -it -p 3000:3000 -v /tmp/ffmpeg-api:/tmp -e KEEP_ALL_FILES=true gnh1201/ffmpeg-api +sudo mkdir /var/cache/ffmpeg-api +sudo chmod -R 777 /var/cache/ffmpeg-api +sudo docker run -itd --rm -p 3000:3000 -v /var/cache/ffmpeg-api:/tmp -e KEEP_ALL_FILES=true gnh1201/ffmpeg-api ``` == Usage