Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.29 KB

Creating_a_proxy_server_for_docker.md

File metadata and controls

27 lines (21 loc) · 1.29 KB

Serving with a proxy server and HTTPS

By default the docker application doesn't come with an https server. It is also likely that you want to serve other applications from your server. If you want to serve the docker application via https or serve multiple applications via nginx/apache then you will also need a proxy server.

To change the port from which OpenEats is served you will need to update the left side of the port configuration in the docker-prod.override.yml file.

  • Open the docker-prod.override.yml (your docker-compose configuration) file.
  • To serve the app via port 7000:
version: '2.3'
services:
  nginx:
    ports:
      - "7000:80"
  • Restart your docker containers

    • docker-compose -f docker-prod.yml -f docker-prod.override.yml -f docker-prod.version.yml restart
    • OR
    • Just run the quick-start script again: ./quick-start
  • Load localhost:7000 to confirm it worked.

It is highly recommended that you serve your content over https. Let's Encrypt provides a super easy, automated, and free process for serving your content over https. If you are using nginx, they will also automatically update your plain http vhost files.

For more info on how to use proxies, see: https://www.nginx.com/resources/admin-guide/reverse-proxy/