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

Allow .docker.env define new domains + port + container #79

Open
capynet opened this issue Oct 9, 2018 · 1 comment
Open

Allow .docker.env define new domains + port + container #79

capynet opened this issue Oct 9, 2018 · 1 comment

Comments

@capynet
Copy link
Contributor

capynet commented Oct 9, 2018

Use case

I have two node apps that runs at 8888 and 9999 ports. I would like to have access trough 8888.mysite.localhost and 9999.mysite.localhost (pointing to the frontend container).

Purposed solution

Add CUSTOM_PORTS= 8888:frontend,9999:frontend to .docker.env and split and use the pair port + container to construct labels at the corresponding container like this:

    labels:
      traefik.9999.frontend.rule: "Host:9999.${PROJECT_NAME}.localhost"
      traefik.9999.port: "9999"

      traefik.8888.frontend.rule: "Host:8888.${PROJECT_NAME}.localhost"
      traefik.8888.port: "8888"

It can be accomplished adding some params via CLI?

@capynet
Copy link
Contributor Author

capynet commented Oct 9, 2018

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