Update docker image and README for OpenAI API

- Update docker-compose.yml to use image from ghcr.io repository and add environment variable for OpenAI API Token
- Update README.md instructions to use the ghcr.io repository and remove 3 empty lines at the end of the file

[docker-compose.yml]
- Change the image from `gpt3discord:latest` to `docker pull ghcr.io/Kav-K/GPT3Discord:main`
- Add environment variable for OpenAI API Token
[README.md]
- Change the docker run command to use the ghcr.io repository
- Remove 3 empty lines at the end of the file
Shubham Verlekar 2 years ago
parent c6e9b1cfb6
commit 01570e286c

@ -440,14 +440,11 @@ This can also be run via screen/tmux or detached like a daemon. -->
### Docker and Docker Compose :
To use docker you can use the following command
```
docker run -d --name gpt3discord -v /containers/gpt3discord:/data -v /containers/gpt3discord/share:/data/share --env-file /path/to/.env gpt3discord:latest
docker run -d --name gpt3discord -v /containers/gpt3discord:/data -v /containers/gpt3discord/share:/data/share --env-file /path/to/.env ghcr.io/Kav-K/GPT3Discord:main
```
Make sure that the /data and /data/share are created and the `env-file` path is correct.
#### Docker Compose
To use Docker Compose, you need to have Docker and Docker Compose installed on your system. You can download and install them from the following links:

@ -1,7 +1,7 @@
version: '3.8'
services:
gpt3discord:
image: gpt3discord:latest
image: docker pull ghcr.io/Kav-K/GPT3Discord:main
container_name: gpt3discord
environment:
OPENAI_TOKEN: "<openai_api_token>"

Loading…
Cancel
Save