- Optional: Make a data and share directory then mount it to docker to keep persistent data
- Add `-v DATA_DIR=/data` to command -> `usage.txt` is saved here
- Add `-v SHARE_DIR=/data/share` to command -> this is where `conversation starters, optimizer pretext and the 'openers' folder` is alternatively loaded from
- If `SHARE_DIR` is not included it'll load only from the files added during the docker image build
Make sure the `env_file` path is correct and the `DATA_DIR` and `SHARE_DIR` paths exists on your machine if used.
#### Docker Compose
@ -163,8 +159,9 @@ To use Docker Compose, you need to have Docker and Docker Compose installed on y
To start the gpt3discord container with Docker Compose, follow these steps:
1. Open a terminal or command prompt and navigate to the directory that contains the docker-compose.yml file.
2. Open the docker-compose.yml file and replace the environment variable values with your actual tokens and IDs.
3. Run the following command to start the container in detached mode:
2. Open the docker-compose.yml file and replace the environment variable values with your actual tokens and IDs.
3. In the docker-compose.yml replace the volumes with a path on your machine if you don't use the ones listed, the path to replace is the one on the left side of the colon.
4. Run the following command to start the container in detached mode: