Repository navigation
docs: explain how to make build stage in docker-compose.*.yaml work offline - #7480
Merged
Merged
Conversation
rfay
reviewed
Jul 23, 2025
|
|
||
| ```yaml | ||
| services: | ||
| someservice: |
Member
There was a problem hiding this comment.
Maybe add a dummy image here as well since there usually is one?
| ```yaml | ||
| services: | ||
| someservice: | ||
| image: ${CUSTOM_DOCKER_IMAGE:-busybox:latest}-${DDEV_SITENAME}-built |
Member
There was a problem hiding this comment.
Should this be <your-docker-image> as opposed to a variable?
I see why you're using a variable there (so it's in all the places) but it does seem like people might not understand.
Member
Author
There was a problem hiding this comment.
Not sure how to place <your-docker-image> here, replaced busybox:latest with example/example:latest and CUSTOM_DOCKER_IMAGE with YOUR_DOCKER_IMAGE.
| # Add a build stage so we can add `mkcert`, etc. | ||
| # Add an image and a build stage so we can add `mkcert`, etc. | ||
| # The Dockerfile for the build stage goes in the `.ddev/example directory` here | ||
| image: ${EXAMPLE_DOCKER_IMAGE:-example/example:latest}-${DDEV_SITENAME}-built |
Member
There was a problem hiding this comment.
Same here with EXAMPLE_DOCKER_IMAGE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Issue
When you don't have an
imagewithbuildstage, your DDEV can't work offline:build:withimage:indocker-compose.*.yamlto use DDEV offline ddev-addon-template#81How This PR Solves The Issue
Explains it.
Manual Testing Instructions
https://ddev--7480.org.readthedocs.build/en/7480/users/extend/custom-compose-files/#conventions-for-defining-additional-services
Automated Testing Overview
Release/Deployment Notes