Skip to content
Discussion options

You must be logged in to vote

I guess I don't see the difference? ConfigureComposeFile gets called after aspire has translated the high level resource model to the low level docker compose model. When you add a voulme, it adds it to the service definition and to the compose file in the volumes section. ConfigureComposeFile gives you a chance to mutate this after the fact in a programmatic way.

You can't reference a volume defined in the aspire app model, defined in the compose file, but you can change the volume described in the aspire model before the compose file is written.

aspire model -> compose model -> file on disk.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cilerler
Comment options

@davidfowl
Comment options

Answer selected by cilerler
@cilerler
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants