Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set livereload-port for docker watch to work #239

Open
airtonix opened this issue Apr 16, 2019 · 0 comments
Open

Set livereload-port for docker watch to work #239

airtonix opened this issue Apr 16, 2019 · 0 comments

Comments

@airtonix
Copy link

It's be great if watch mode in docker would work.

to make this happen, you need to allow setting the live-reload port from docpress, otherwise get-port will choose a random port every time, which isn't feasible for docker-compose.

version: "2.1"

services:

  frontend:
    image: my-image-name
    ports:
      - 3000:3000
    environment:
      - PORT=3000
      - HOST=0.0.0.0
      - CHOKIDAR_USEPOLLING=true
    working_dir: /opt/app/
    command: npm run serve
    volumes:
      - ./package.json:/opt/app/package.json
      - ./docs:/opt/app/docs
      - ./README.md:/opt/app/README.md
      - /opt/app/node_modules
@knownasilya knownasilya changed the title watch mode in docker doesn't reload page Set livereload-port for docker watch to work Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants