ConSol / docker-headless-vnc-container

Collection of Docker images with headless VNC environments
Apache License 2.0
1.73k stars 737 forks source link

How to use "chromium-browser" command in a docker-compose.yml file #170

Closed guorun closed 1 year ago

guorun commented 1 year ago

Tag Question

Short summary How Could I Use Command Lines In docker-compose.yml file? Is that right?

Detailed question

version: '3.8'
services:
  vnc:
    build: .
    container_name: vnc
    ports: 
      - 8080:5901
      - 8081:6901
    user: "0"
    environment:
      - VNC_COL_DEPTH=24
      - VNC_RESOLUTION=1280x1024
      - DEBUG=true
      - OPENBOX_ARGS=--startup "/usr/bin/entrypoint.sh"
    command: --chromium-browser="https://www.google.com"

But It do not work