New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Docker/ MetaBase SSL setup
I have installed Docker on centos 7.2. I have installed MetaBase image. All is working great. I need to secure the URL. I generated a SSL certificate using letsEncrypt. How do I setup Docker/ Metabase to listen and serve https?
Any help / pointers appreciated.
Comments
Instead of
-p 3000:3000
, do-p 127.0.0.1:3000:3000
Then setup
nginx
as a reverse proxy that listens to your public ip and forwards to127.0.0.1:3000
. You'll setup the SSL termination onnginx
and you're done.Thank you. Would you happen to have a tutorial or something which can guide me through this setup?
Use jwilder/nginx-proxy
For port: https://github.com/jwilder/nginx-proxy#multiple-ports
For SSL: https://github.com/jwilder/nginx-proxy#ssl-support
Might be useful to setup a docker-compose.yml for your app, and another for jwilder/nginx-proxy so that
VIRTUAL_HOST
andVIRTUAL_PORT
env vars, along with SSL certificate folders are set with just adocker-compose up -d
Maybe something like this for jwilder/nginx-proxy:
with the certs folder containing the certificates in the same directory as docker-compose.yml for jwilder/nginx-proxy
Maybe something like this for your app:
This is superb. It took me a couple of tries, but, I think I have got it working... (without docker-compose.yml for now). I am still getting comfortable with the whole docker thingi. Thanks again.