Skip to content

Commit

Permalink
Added docker compose instructions (#548)
Browse files Browse the repository at this point in the history
* Added docker compose instructions

* Changed the default port to 5173
  • Loading branch information
darrenchang committed Mar 9, 2024
1 parent bd5f25b commit aba26e4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,31 @@ One click deploy with Vercel
4. Run `yarn` or `npm install`, depending on whether you have yarn or npm installed.
5. Launch the app by running `yarn dev` or `npm run dev`

### Running it locally using docker compose
1. Ensure that you have the following installed:

- [docker](https://www.docker.com/) (v24.0.7 or above)
```bash
curl https://get.docker.com | sh \
&& sudo usermod -aG docker $USER
```

2. Build the docker image
```
docker compose build
```

3. Build and start the container using docker compose
```
docker compose build
docker compose up -d
```

4. Stop the container
```
docker compose down
```

# ⭐️ Star History

[![Star History Chart](https://api.star-history.com/svg?repos=ztjhz/BetterChatGPT&type=Date)](https://github.com/ztjhz/BetterChatGPT/stargazers)
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.4'

services:
ui_dev:
restart: always
image: better-chat-gpt
build:
context: ./
ports:
- 5173:3000

0 comments on commit aba26e4

Please sign in to comment.