How to create custom domain name for ghost?

i use ghost docker
which tool is use to being create domain name that can point to ghost port
I try pi hole docker but can’t use ghost port

What is purpose of pi-hole in this usecase? What were you trying to accomplish?

Since it seems like your question is more domain based and a mix of docker. However, can’t really answer it since too many unknown variables. You may want to expose the port back to host machine and visit it via localhost and that port.

Obviously that isn’t preferred when you hit production - so bring in nginx and reverse proxy that to that exposed port/docker container from a secured domain.

https://hub.docker.com/_/ghost

Both of those should help.

2 Likes

i want to create domain name then point domain name to localhost:8080 or redirect port
can I use nginx proxy manager docker do u have a guide ??

i try add proxy host to my domain but it show

SORRY!

If you are the owner of this website, please contact your hosting provider: [webmaster@mydomainname](mailto:webmaster@mydomainname)

It is possible you have reached this page because:

Please share your Nginx config for the domain, e.g., /etc/nginx/sites-available/mydomainname-ssl.conf. Thanks.

1 Like

i need to install nginx docker more right ?

-bash: cd: /etc/nginx/: No such file or directory

I got this idk why volume not show here I use Volume mapping auto in portainer
what should I do ??

(Spanish) How to create your Blog with Ghost + MySQL + Nginx Proxy Manager on your NAS

1 Like

It would be beneficial if you explained your hosting environment, and why you chose Docker.

1 Like

i do follow this guide and got error
Internal Error
when i try to create SSL
I Test Server Reachability
it show
mydomain **:** There is a server found at this domain but it does not seem to be Nginx Proxy Manager. Please make sure your domain points to the IP where your NPM instance is running.
when I change URL in docker compose & port 2368:2368
it shows
Internal Error

Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-6" --agree-tos --authenticator webroot --email "myemail" --preferred-challenges "dns,http" --domains "mydomainame" 
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

    at ChildProcess.exithandler (node:child_process:399:12)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Socket. (node:internal/child_process:451:11)
    at Socket.emit (node:events:526:28)
    at Pipe. (node:net:687:12)

I also try not use sub domain
it show
**mydomain:** There is no server available at this domain. Please make sure your domain exists and points to the IP where your NPM instance is running and if necessary port 80 is forwarded in your router. (my router is already port forwarded)
when I try enter mydomain it show
DNS_PROBE_FINISHED_NXDOMAIN
what should I do ??

my setup is almost like this

i think docker is easy to manage.

Sorry, but you need to make the effort to describe your setup here… I’m not going to watch the video.

However, if you’re running on an RPI, why use Docker? Simply install Raspbian, which is similar to Ubuntu 20.04, and follow the official documentation.

You’ll also need to set up Dynamic DNS on your home network, port forwarding on your router, and setup A-records for the domain you intend to use. Nginx is a reverse proxy that will pass traffic from the domain to your instance of Ghost.

1 Like

you can see #7 Joan guide

I can’t pass traffic from domain to ghost

I just create DNS A-records in no-IP
mydomain.ddns.net point to public IP
then I use Nginx proxy manager (I think it seems like Nginx) to pass traffic
mydomain.ddns.net to port 8080 (default docker-compose)
when I try to enter my domain it got an error
ERR_CONNECTION_REFUSED
what should I do ??