moleculer icon indicating copy to clipboard operation
moleculer copied to clipboard

How to use glob pattern in docker compose?

Open dalmatele opened this issue 1 year ago • 1 comments

I'm trying to figure out how to use glob pattern in this case. I have 3 services: a, b and c. Now I want to seperate a and b into one image and c in the other. So in docker compose file I think i should set SERVICES variable like this: image 1: SERVICES: a,b,!c image 2: SERVICES: c, !a,!b But it does not work. I also try SERVICE: *,!c, too.

How do I do in this case?

dalmatele avatar Apr 12 '24 09:04 dalmatele

you should add only the necessary services in the vars:

image 1: SERVICES: a,b image 2: SERVICES: c

icebob avatar Apr 21 '24 11:04 icebob