Skip to content

Commit

Permalink
docs: Update wiki.md for .env setup and remove .env.sample
Browse files Browse the repository at this point in the history
  • Loading branch information
teamchong committed Aug 29, 2024
1 parent a361c2d commit 21c6372
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .env.sample

This file was deleted.

12 changes: 6 additions & 6 deletions wiki.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,16 @@ then start building a software by ``python3 run.py`` and go to [Visualizer Websi
To run your ChatDev application with Docker Compose, simply:
1. Find the `.env.sample` file in the root directory of your ChatDev project.
2. Copy this file and rename it to `.env`.
3. Open the `.env` file with the text editor of your choice.
4. Replace `<Your OpenAI API Key>` with your actual OpenAI API key from OpenAI. Add other environment variables for local development as needed.
5. Initiate the application by running:
```commandline
1. In the project root, create a `.env` with your text editor.
2. Add `OPENAI_API_KEY=<Your OpenAI API Key>` and any other secrets.
3. Save the file. It's ignored by Git for your security.
4. Run the application with the specified command.
docker compose run --service-ports chatdev
```
This command will build the Docker image (if necessary) and start the container.


Any changes you make to the project files on your host machine will sync in real-time inside the container, thanks to the configured bind mount in `docker-compose.yml`.

### Stopping the Application
Expand Down

0 comments on commit 21c6372

Please sign in to comment.