mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
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:
+1
-1
@@ -26,7 +26,7 @@ yarn-error.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# local env files
|
||||
.env*.local
|
||||
.env
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
|
||||
@@ -89,6 +89,24 @@ with features that matter to them.
|
||||
|
||||

|
||||
|
||||
## 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 🧩
|
||||
|
||||

|
||||
|
||||
@@ -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" ]
|
||||
Reference in New Issue
Block a user