diff --git a/README.md b/README.md index 11a6d5e19..7970ef68e 100644 --- a/README.md +++ b/README.md @@ -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