SteveLTN / https-portal

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

Serving a dynamic website locally #218

Closed jmayergit closed 4 years ago

jmayergit commented 4 years ago

I have everything set up and running locally according to the documentation, however I am unsure how to access my Next.js application which uses Express.js (non-static). Here is my Dockerfile



services:

  front:
    container_name: front
    build:
      context: .
      dockerfile: Dockerfile
    volumes:
      - '.:/work'
    ports:
      - '3001:3000'
    environment:
      - NODE_ENV=development

  https-portal:
    image: steveltn/https-portal:1
    ports:
      - '80:80'
      - '443:443'
    links:
      - front
    restart: always
    environment:
      DOMAINS: 'example.com -> http://front:80'
      STAGE: local