moleculer
moleculer copied to clipboard
How to use glob pattern in docker compose?
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?
you should add only the necessary services in the vars:
image 1: SERVICES: a,b
image 2: SERVICES: c