Skip to content

Use novnc with network_mode: host #9

@ShevaDavid

Description

@ShevaDavid

If I set
network_mode: host
in docker-compose file, the http://localhost:8080/vnc.html does not work anymore
here is my setup

version: '2'
services:
  ide:
    image: psharkey/intellij:latest
    network_mode: host
    environment:
      - DISPLAY=novnc:0.0
    depends_on:
      - novnc
  novnc:
    image: theasp/novnc:latest
    network_mode: host
    environment:
      # Adjust to your screen size
      - DISPLAY_WIDTH=1600
      - DISPLAY_HEIGHT=968
      - RUN_XTERM=no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions