microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
382 stars 242 forks source link

Treafik: Unable to connect to container #790

Closed bvbeek closed 4 years ago

bvbeek commented 4 years ago

We used this script to setup the Treafik container: https://github.com/tfenster/TraefikForBC Thanks to Tobias!

Import-Module C:\TraefikforBC\TraefikForBC.psd1 -force
Initialize-TraefikForBC -email own@mailaddress.nl -externaldns own.dns.com
Start-Traefik

And we use this to create a container: Thanks to Freddy!

New-BcContainer `
        -accept_eula `
        -alwaysPull `
        -accept_outdated `
        -containerName $ContainerName `
        -imageName $ImageName `
        -licenseFile $container.LicenseFile `
        -assignPremiumPlan `
        -Credential $Credentials `
        -auth NavUserPassword `
        -updateHosts `
        -isolation process `
        -additionalParameters $AdditionalParameters `
        -shortcuts None `
        -doNotCheckHealth `
        -includeAL `
        -memoryLimit $MemoryLimit `
        -useTraefik `
        -PublicDnsName 'own.dns.com'

Container is succesfully created: image

Traefik is running: image

Using the url: https://own.dns.com/latest-w1

But the links are not working: image

Container IP is also unreachable: image

What are we doing wrong? Please can anyone help us with this?

freddydk commented 4 years ago

@tfenster - do you know?

tfenster commented 4 years ago

@bvbeek I created those scripts before I added support for navcontainerhelper, so I am not sure if those work anymore. Could you retry with the navcontainerhelper scripts? Also, please share the full output of all commands as it otherwise is very difficult to find out what happens