Fix docker-compose problems#2
Merged
Merged
Conversation
28Pollux28
approved these changes
Jun 2, 2026
Owner
|
I'll fix the CI in a dedicated PR |
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.
Multi-service / Docker Compose challenges
For challenges that need more than one container (databases, sidecars, custom
networks/volumes), drop a standard Docker Compose file next to your
challenge.yml:Galvanize auto-detects the first of
compose.yaml,compose.yml,docker-compose.yaml, ordocker-compose.ymlin the challenge directory,validates it, and deploys it. When a compose file is present,
playbook_namedefaults to
custom_compose, so a minimalchallenge.ymlis enough:This lets you develop and test the stack locally with a plain
docker compose up, then ship the file unchanged.Exposing services (
expose)Compose challenges no longer need hand-written Traefik labels, manual network
wiring, or hand-picked host ports. Declare an
exposeblock and Galvanize wiresthe networking for you — the same automation the
http/tcpplaybooks providefor single containers:
For each entry Galvanize will, on deploy:
type: http— attach the service to the external Traefik network, add thetraefik.enable+ router/service labels, and routehttps://<project>.<instancer_host>/to it (when more than one HTTP serviceis exposed, each gets a
<service>-<project>.<instancer_host>subdomain).Requires
traefik_networkininstancer.extra_deployment_parameters.type: tcp— publish the container port. Withinstancer.randomize_published_portsenabled, the host port is randomized perteam and persisted, so instances don't collide.
Connection info is returned automatically from the resulting Traefik route or
published port.