build: add docker-compose as pre-built image option, add usage to readme

For .gitignore, change ignored env file to .env (a common use case). .env.local is automatically ignored by git and more related application.
This commit is contained in:
Sam Biggins
2023-05-13 11:49:40 -07:00
parent f8d222ffa4
commit 02cd5db630
3 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ yarn-error.log*
.pnpm-debug.log*
# local env files
.env*.local
.env
# vercel
.vercel
+18
View File
@@ -89,6 +89,24 @@ with features that matter to them.
![Much features, so fun](docs/pixels/big-AGI-compo2b.png)
## Docker 🐳
### Pre-built image
Add your OpenAI API key to the `.env` file, then in a terminal run:
```bash
docker-compose up
```
### Locally built image
If you wish to build the image yourself, run
```bash
docker build -t big-agi .
docker run --detach 'big-agi'
```
## Code 🧩
![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=&logo=typescript&logoColor=white)
+10
View File
@@ -0,0 +1,10 @@
version: '3.9'
services:
big-agi:
image: ghcr.io/enricoros/big-agi:main
ports:
- 3000:3000
env_file:
- .env
command: ["next", "start", "-p", "3000" ]