Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use glob pattern in docker compose? #1278

Open
dalmatele opened this issue Apr 12, 2024 · 1 comment
Open

How to use glob pattern in docker compose? #1278

dalmatele opened this issue Apr 12, 2024 · 1 comment

Comments

@dalmatele
Copy link

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?

@icebob
Copy link
Member

icebob commented Apr 21, 2024

you should add only the necessary services in the vars:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants