Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kitsukey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kio!
Kitsukey
Commits
1c5fdf1e
Commit
1c5fdf1e
authored
7 years ago
by
こぴなたみぽ
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update docker.en.md
parent
66056089
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/docker.en.md
+13
-7
13 additions, 7 deletions
docs/docker.en.md
with
13 additions
and
7 deletions
docs/docker.en.md
+
13
−
7
View file @
1c5fdf1e
...
...
@@ -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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment