Skip to content

Include docker compose example in docker docs#125

Open
matthewlouisbrockman wants to merge 9 commits intomainfrom
docker-compose
Open

Include docker compose example in docker docs#125
matthewlouisbrockman wants to merge 9 commits intomainfrom
docker-compose

Conversation

@matthewlouisbrockman
Copy link
Contributor

@matthewlouisbrockman matthewlouisbrockman commented Feb 20, 2026

Adds docker compose instructions to the docker page.

  • Creates separate trees for Docker and Docker Compose template/ build/run
  • Docker Compose Example code

Note

Low Risk
Documentation-only changes; risk is limited to potentially incorrect example commands or version assumptions.

Overview
Updates the Docker template docs to cover both Docker and Docker Compose, including a new end-to-end Compose example (template, build, and run) that installs Compose via common Ubuntu packages and validates it by running a sample compose.yaml.

Also refactors the existing Docker-only example (section headings/structure) and switches the base image in the snippets from Ubuntu 25.04 to 24.04.

Written by Cursor Bugbot for commit 398f0b6. This will update automatically on new commits. Configure here.

@matthewlouisbrockman matthewlouisbrockman changed the title Docker Compose Example (Draft) Include docker compose example in docker docs Feb 20, 2026
Copy link
Contributor

@beran-t beran-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sync on the ubuntu version in examples
Remove root as its not needed is user is in docker group

import { Template } from 'e2b'

export const composeTemplate = Template()
.fromUbuntuImage('24.04')
Copy link
Contributor

@beran-t beran-t Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are using Ubuntu 24 and 25 interchangeably. We should probably stick to one. Not sure if 24 or 25?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going with 24 for now i guess

@matthewlouisbrockman
Copy link
Contributor Author

k, i guess not need root!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants