Dokku server hosts two sites with TLD's, both domains are landing on only one app

I have two simple dokku sites on one server. The first is a static html site, and the second is a very simple rails app. Each app has its own TLD.
For the sake of argument well give them the domains: static.com and rails.com.

Ive used the Dokku domains plugin to set both the naked and ‘www’ domains for each site. The domain names were purchased and setup through NameCheap

  • Is there a way to lint the Dockerfile?
  • How do i get postgres data to persist using docker-compose
  • Docker - Run Apache on host and container for different websites
  • Add trusted CA to Debian/Ubuntu image
  • Passing arguments for Dockerfiles using Docker compose
  • docker container using the same volume even after running new container image
  • The namecheap domains each have two entries:

    @    |    http://www.static.com    |    URL Redirect
    www  |    static.server.com        |    CNAME(alias)
    
    @    |    http://www.rails.com     |    URL Redirect
    www  |    rails.server.com         |    CNAME(alias)
    

    I encountered this issue on the Dokku Github page which would indicate that this can be overcome by using the naked domain as the app name when creating the original git remote.

    git remote add dokku dokku@server.com:static.com
    

    However, that issue was closed two years ago, and the same result seems to be accomplished by the domains plugin. So im wondering if I should restart from this point with both apps?

    So far the above steps has resulted in traffic from both domains being sent to static.com. Has anyone encountered this before? Is there a way to overcome this issue?

  • Java app in Docker container does not log to syslog properly
  • How to set docker run arguments on marathon spec
  • Docker not mounting a folder as volume
  • How can I pass the argument to docker-compose.yml using shell file
  • cannot build docker image
  • Auto-synch data in container upon changes in host
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.