a nginx container to proxy mysql ,that you can remote link mysql (eg. SQLyog ,Navicat )
180
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
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 ")
Content type
Image
Digest
Size
8.3 MB
Last updated
about 7 years ago
docker pull flame123/nginx:vhost