this post was submitted on 23 Jan 2024
8 points (100.0% liked)
Docker
1345 readers
1 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Answer has been solved but, just in case someone is curious about it: yes, is possible to extend a
docker-compose.yamlfile with another.From Docker's docs: https://docs.docker.com/compose/multiple-compose-files/extends/
You can have a
common-services.ymlfile (or whatever name you want to give to it) with a service defined inside, like this:And then, in your
docker-compose.yamlfile just extend it with more specific things.