What is the equivalent of ‍-h in docker-compose?

后端 未结 1 2007
广开言路
广开言路 2021-01-28 14:37

I want convert docker run to docker-compose with -h parameter

What is the equivalent of ‍‍‍‍-h in docker-compose

相关标签:
1条回答
  • 2021-01-28 15:10

    Anything that appears after the docker run image name is the Compose command:.

    docker run \
      --rm -p 8080:80/tcp -p 1935:1935 \  # Docker options
      -p 3478:3478 -p 3478:3478/udp \     # More Docker options
      bigbluebutton \                     # Image name
      -h webinar.mydomain.com             # Command
    
    services:
      bigbluebutton:
        build: .
        command: -h webinar.mydomain.com
        ports: ['8080:80', '1935:1935', '3478:3478', '3478:3478/udp']
    
    0 讨论(0)
提交回复
热议问题