SteveLTN / https-portal

A fully automated HTTPS server powered by Nginx, Let's Encrypt and Docker.
MIT License
4.41k stars 295 forks source link

Problems in MERN dockerized project #309

Open juantoman opened 2 years ago

juantoman commented 2 years ago

Hello SteveLTN, and thanks for your work! I'm trying to use your https-portal in a MERN dockerized project but I don't know how to use it. My docker-compose.yml has this code:

version: '3.3'

services: server: build: context: ./server dockerfile: Dockerfile image: myapp-server container_name: myapp-node-server command: /usr/src/app/node_modules/.bin/nodemon index.js volumes:

networks: app-network: driver: bridge

volumes: data-volume: node_modules: web-root: driver: local

But I don't know how to connect to the express server with https and get data from my mongodb. Could you help me?

Thank you very much.

Juan Torres

SteveLTN commented 2 years ago

Which service is your express server? Is it client? And does it work without HTTPS? If client is your express server, make sure it works from port 8000 first. Then you can try putting HTTPS-PORTAL on top of it.