Replies: 1 comment
-
| 
         It is never good to put a database on the Internet without a backup, so I would not approve of this, but you can hide the port of a Docker Mysql server by not publishing it but using another one. For example, you remove ports: completely from the Docker compose and open port 10932 via the NPM and forward it internally to the mysql server, otherwise this would not work in my opinion.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, I am beginner to web hosting on VPS and recently setting up my services with NPM. I bumped into an issue with setting up dockerized MYSQL database and I am wondering if I could make it running as a subdomain like
mysql.domain.comor perhaps with an exposed port likemysql.domain.com:3306so it's somehow looking better and easier for my developers to remember the connection.I don't know if the idea is correct or not. Would appreciate if anyone could share some advice to me. Thanks
Beta Was this translation helpful? Give feedback.
All reactions