Search code examples
dockernginxdnshostingghost

How do i connect my domain name to a Docker container running a Ghost blog


What i have done:

  • Bought a domain name with Dreamhost.

  • Redirected said domain names DNS A record to the ip of my docker environment.

  • Set up a Docker environment with portainer, running a container with the latest version of the GHOST blogging platform. The platform works, and i can access it through a specific port appended to the host IP address of the Docker envrionment as always.

Now, i'd like to redirect my visitors to a specific domain name, but i've read around the internet and documentation for Docker, but my biggest problem is i'm not sure what to search for.

From what i gather, i will need Nginx to route people from the IP address to the correct port. Any help would be great, as i'm new to Docker and really want to learn.


Solution

  • Repo which completly help your rquirement with nginx, Here is the link, Docker compose NGINX - Reverse proxy with SSL