Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docker compose instructions #548

Merged
merged 2 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
- 3000:3000
ztjhz marked this conversation as resolved.
Show resolved Hide resolved