Skip to content

Commit

Permalink
fix: add volume for docker run (#267)
Browse files Browse the repository at this point in the history
* fix: add volume for docker run

* chore: update

* chore: remove docker-run-simple
  • Loading branch information
zll600 authored Dec 24, 2023
1 parent 4b7d5df commit 91944ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ title: Terminal Docker Run With Volume
---

```bash
docker run --init --publish 8080:8080 -volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase:%%bb_version%%
docker run --init --name bytebase --publish 8080:8080 -volume ~/.bytebase/data:/var/opt/bytebase bytebase/bytebase:%%bb_version%%
```
8 changes: 1 addition & 7 deletions content/docs/get-started/self-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,14 @@ Estimated time: **5 minutes**.

### Installation

<IncludeBlock url="/docs/get-started/install/terminal-docker-run-simple"></IncludeBlock>
<IncludeBlock url="/docs/get-started/install/terminal-docker-run-volume"></IncludeBlock>

Once you see the Bytebase logo, you can access the console at http://localhost:8080.

<IncludeBlock url="/docs/get-started/install/terminal-startup-output-success"></IncludeBlock>

### Configuration

#### Persist Bytebase metadata

By default, Bytebase will store the metadata in `/var/opt/bytebase`. If you want to persist metadata across container restarts, mount the directory to your host machine, like `--volume ~/.bytebase/data:/var/opt/bytebase`.

<IncludeBlock url="/docs/get-started/install/terminal-docker-run-volume"></IncludeBlock>

#### Use external PostgreSQL to store metadata

By default, Bytebase will use an embedded PostgreSQL database to store metadata. For production usage, it is recommended to use an external PostgreSQL database instead.
Expand Down

1 comment on commit 91944ef

@vercel
Copy link

@vercel vercel bot commented on 91944ef Dec 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.