Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an example of docker compose file #2947

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions website/docs/installation/Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,26 @@ docker run -it -p {WorkstationPortNum}:{DockerPortNum} -v {WorkStation_Dir}:{Doc
docker run -it -v $(pwd)/data:/data autogen_base_img:latest python /myapp/process_data.py
```

## Docker Compose

For docker-compose.yml file, the following example can be used as a reference:
```yaml
version: '3.8'

services:
autogen:
build:
context: https://github.com/microsoft/autogen.git#main
# use `dockerfile: .devcontainer/full/Dockerfile` for the full image
dockerfile: .devcontainer/Dockerfile
volumes:
- ./:/app
ports:
- 8080:3000
command: ['python', '/app/main.py']

```

## Additional Resources

- Details on all the Dockerfile options can be found in the [Dockerfile](https://github.com/microsoft/autogen/.devcontainer/README.md) README.
Expand Down