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

Label question #30

Closed
ghost opened this issue Jan 27, 2020 · 2 comments
Closed

Label question #30

ghost opened this issue Jan 27, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 27, 2020

Hi,

How come some of the containers such as adminer contain traefik labels and the Nextcloud container does not?

@ReinerNippes
Copy link
Owner

The nextcloud container is a bit tricky. There two kind of images: apache and fpm-php
The fpm-php image has no build in web server. So it only works with a web server (nginx) in front of it.
Traefik is not a web server. It's only a reverse proxy/ingress router.

So I hat to put the labels in a variable.

If fpm is part of the image name the nextcloud container has no labels

"{{ nextcloud_traefik_label['nginx' if ( 'fpm' in docker_nextcloud_image ) else 'apache'] }}"

but the nginx container has them

@ghost
Copy link
Author

ghost commented Jan 28, 2020

Ahhh I see. Perfect explanation. Thanks!

@ghost ghost closed this as completed Jan 28, 2020
This issue was closed.
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

1 participant