Sign inSign up

flame123/nginx

By flame123

•Updated about 7 years ago

a nginx container to proxy mysql ,that you can remote link mysql (eg. SQLyog ,Navicat )

Image
1

180

flame123/nginx repository overview

 1) # default expose 8306   ,  link mysql to 127.0.0.1:3306
     docker run  --net host   flame123/nginx:mysql              



 2) # proxy expose 8306   ,  link mysql to 127.0.0.1:5306
      docker run  --net host  -e  MYSQL_PORT=5306   flame123/nginx:mysql          



 3)  #  proxy expose 1234   ,  link mysql to 127.0.0.1:5306
      docker run  --net host  -e  MYSQL_PORT=5306  -e  PROXY_PORT=1234   flame123/nginx:mysql   
⁠flame123/nginx:vhost ---- nginx to proxy Virtual host ,you can add many Virtual host to you VPS
1) docker run  --rm  -v  /usr:/www  --net host  flame123/nginx:vhost                    
      # First to create nginx.cfg to  /www  and  edit nginx.cfg  to add you Virtual host name.

2) docker run  --rm  -v  /usr:/www  --net host  -d   flame123/nginx:vhost              
     #  Second you can to starting the nginx server for test ( take out this options  " -d ")


        

Tag summary

Content type

Image

Digest

Size

8.3 MB

Last updated

about 7 years ago

docker pull flame123/nginx:vhost