Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BeautyyuYanli committed Aug 28, 2024
1 parent d933b23 commit 1ca07c8
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,29 +68,15 @@ Demo: [https://nobelium.vercel.app/](https://nobelium.vercel.app/)

## Play With Docker

Unofficial, thanks to [@Vaayne](https://github.com/craigary/nobelium/pull/157)'s work!
Unofficial, thanks to [@Vaayne](https://github.com/craigary/nobelium/pull/157) && [@Yanli](https://yanli.one)'s work!

### Build Docker image yourself
```
# set env
export NOTION_PAGE_ID=xxx # your NOTION_PAGE_ID
export IMAGE=nobelium:latest
# build with docker
docker build -t ${IMAGE} --build-arg NOTION_PAGE_ID .
Edit the `docker-compose.yml` file and set the `NOTION_PAGE_ID` environment variable to your Notion page ID. Then:

# run with docker
docker run -d --name nobelium -p 3000:3000 -e NOTION_PAGE_ID=${NOTION_PAGE_ID} nobelium:latest
```bash
docker compose up
```

### Use default docker image
```
# pull image
docker pull ghcr.io/craigary/nobelium:main
# run with docker
docker run -d --name nobelium -p 3000:3000 -e NOTION_PAGE_ID=${NOTION_PAGE_ID} ghcr.io/craigary/nobelium:main
```
Visit `http://localhost:3000` in your browser.

## Roadmap

Expand Down

0 comments on commit 1ca07c8

Please sign in to comment.