From 1c5fdf1e5de8e71d3edfbc228f2d052c6335067b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=93=E3=81=B4=E3=81=AA=E3=81=9F=E3=81=BF=E3=81=BD?= Date: Fri, 19 May 2017 08:04:24 +0900 Subject: [PATCH] Update docker.en.md --- docs/docker.en.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/docs/docker.en.md b/docs/docker.en.md index fc5f348bfb..591ad86607 100644 --- a/docs/docker.en.md +++ b/docs/docker.en.md @@ -4,20 +4,26 @@ Setup with Docker :whale: Ensure that the working directory is the repository root directory. To create misskey image: - -`sudo docker build -t misskey ./docker` +``` console +$ sudo docker build -t misskey ./docker +``` To run misskey: - -`sudo docker run --rm -i -t -p $PORT:80 -v $(pwd):/root/misskey -v $DBPATH:/data/db misskey` +``` console +$ sudo docker run --rm -i -t -p $PORT:80 -v $(pwd):/root/misskey -v $DBPATH:/data/db misskey +``` where `$PORT` is the port used to access Misskey Web from host browser and `$DBPATH` is the path of MongoDB database on the host for data persistence. -ex: `sudo docker run --rm -i -t -p 80:80 -v $(pwd):/root/misskey -v /data/db:/data/db misskey` +ex: +``` console +$ sudo docker run --rm -i -t -p 80:80 -v $(pwd):/root/misskey -v /data/db:/data/db misskey +``` If you want to run misskey in production mode, add `--env NODE_ENV=production` like this: - -`sudo docker run --rm -i -t -p 80:80 -v $(pwd):/root/misskey -v /data/db:/data/db --env NODE_ENV=production misskey` +``` console +$ sudo docker run --rm -i -t -p 80:80 -v $(pwd):/root/misskey -v /data/db:/data/db --env NODE_ENV=production misskey +``` Note that `$(pwd)` is the working directory.