Skip to content

chore: add compose alternative to develop.sh#22157

Merged
johnstcn merged 6 commits into
mainfrom
cj/docker-compose-dev
Feb 19, 2026
Merged

chore: add compose alternative to develop.sh#22157
johnstcn merged 6 commits into
mainfrom
cj/docker-compose-dev

Conversation

@johnstcn
Copy link
Copy Markdown
Member

Adds a compose.dev.yml intended as a pure-Docker alternative to develop.sh.

@johnstcn johnstcn requested a review from Emyrk February 17, 2026 23:15
@johnstcn johnstcn self-assigned this Feb 17, 2026
@coder-tasks
Copy link
Copy Markdown
Contributor

coder-tasks Bot commented Feb 17, 2026

Documentation Check

Updates Needed

  • docs/about/contributing/CONTRIBUTING.md - Add a section or note mentioning compose.dev.yaml as a Docker Compose alternative to develop.sh for contributors who prefer a pure-Docker development setup. Currently the ## Development workflow section only documents ./scripts/develop.sh.

Automated review via Coder Tasks

Comment thread compose.dev.yaml
Comment on lines +9 to +12
environment:
POSTGRES_USER: coder
POSTGRES_PASSWORD: coder
POSTGRES_DB: coder
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Our makefile uses user postgres and db postgres

coder/Makefile

Lines 1153 to 1155 in ec36617

--env POSTGRES_PASSWORD=postgres \
--env POSTGRES_USER=postgres \
--env POSTGRES_DB=postgres \

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

What particular Makefile target isn't working for you?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makefile is working, just saying you are making the user/pass coder/coder. It's postgres/postgres in our existing develop.sh

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's postgres/postgres in our existing develop.sh

I don't see any mention of postgres in develop.sh? coderd does spin up embedded postgres, but that uses coder/${random_password}/coder by default.

Comment thread compose.dev.yaml
# Add the Docker group so coderd can access the Docker socket.
# Override DOCKER_GROUP if your host's docker group is not 999.
group_add:
- "${DOCKER_GROUP:-999}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is going to break for everyone 😢

For now just add a comment somewhere to do:
export DOCKER_GROUP=$(getent group docker | cut -d: -f3)
?

Is there a way to make it fail if it's not set?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can just wait until we wrap it. So the comment is enough for now probably

Copy link
Copy Markdown
Member

@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

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

When we add the wrapper we can handle running this from different directories too.

@johnstcn johnstcn merged commit cfdbd52 into main Feb 19, 2026
27 checks passed
@johnstcn johnstcn deleted the cj/docker-compose-dev branch February 19, 2026 09:28
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants