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

reverse proxy - Traefik #136

Open
ilsaul opened this issue Jul 6, 2024 · 2 comments
Open

reverse proxy - Traefik #136

ilsaul opened this issue Jul 6, 2024 · 2 comments

Comments

@ilsaul
Copy link

ilsaul commented Jul 6, 2024

Hi,
I use a reverse proxy to setup any container and I have to do it with labca.
I use Traefik and for this I need to insert some labels in the container script.
Exist this system too: https://docs.docker.com/compose/multiple-compose-files/merge/ with compose.override.yml
How can I use it with your system? I used the command 'curl -sSL https://raw.githubusercontent.com/hakwerk/labca/master/install | bash'

thank you

@ilsaul
Copy link
Author

ilsaul commented Jul 6, 2024

I add my docker-compose.override.yml
services:
nginx:
networks:
- rproxy
labels:
traefik.enable: true
traefik.http.routers.labca.rule: Host(labca.mydomain.com)
traefik.http.routers.labca.entryPoints: websecure
traefik.http.routers.labca.service: labca
traefik.http.routers.labca.tls: true
traefik.http.services.labca.loadbalancer.server.port: 80

networks:
rproxy:
name: traefik
external: true

but not working.

@hakwerk
Copy link
Owner

hakwerk commented Jul 7, 2024

I have no experience with override files. Perhaps the networks: field of the nginx service in the override file is replacing the networks instead of appending?
You could try putting this in your compose.override.yml:

    networks:
      - bouldernet
      - rproxy

but not working.

Normally the error message should give you some clue what is wrong...

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