Sign inSign up

jchaney/openresty-nginx

By jchaney

Updated almost 11 years ago

OpenResty/Nginx purpose built for McMyAdmin docker

Image
1

1.6K

jchaney/openresty-nginx repository overview

*This container is purpose built for linking with McMyAdmin Minecraft Container

Minecraft server connection instructional page

Details

  • Uses ubuntu:14.04 base
  • Features OpenResty(Nginx + Lua), and Lapis Framework
  • Provides SSL termination and reverse proxy for McMyAdmin Server
  • Exposes tcp/80 and tcp/443
  • Defaults to no SSL, SSL is provided when ENV variables are set and host volume linked
  • Requires link alias with McMyAdmin container to be named "MMA"
  • Provides a default page on tcp/80 with container specific generated instructions on how to connect to linked McMyAdmin server (screenshot above). This is great place to send friends new to Minecraft who want to connect to your server.

Run

Default (No SSL) example:

docker run -p 80:80 --name nginx --link mcmyadmin:mma jchaney/openresty-nginx

SSL example:

Note: You will need to provide your own cert and key, and attach a volume containing those to your container. You can put these wherever you want, however you will need to provide those paths using the environment variables SSL_KEY and SSL_CERT as shown below. In my example, I have copied the cert and key to /home/jchaney/ssl and mapped that to /root/ssl on the container. I have then passed the paths to those files in the environment variables.

docker run -p 80:80 -p 443:443 --name nginx --link mcmyadmin:mma -v /home/jchaney/ssl:/root/ssl -e "SSL_KEY=/root/ssl/myssl.key" -e "SSL_CERT=/root/ssl/myssl.crt" jchaney/openresty-nginx

Next steps

Tag summary

Content type

Image

Digest

sha256:52e605b01

Size

168.2 MB

Last updated

almost 11 years ago

docker pull jchaney/openresty-nginx