docker-compose 설정에 command 사용 방법
Post

docker-compose 설정에 command 사용 방법

단독 명령어인 경우

1
2
3
4
5
6
7
8
9
10
version: "3"

services:
  gotenberg:
    build: # Dockerfile 빌드
      context: ./ # Dockerfile 빌드 경로
    command:
      - "gotenberg"
    ports:
      - 3000:3000

옵션이 있는 경우

1
2
3
4
5
6
7
8
9
version: "3"

services:
  gotenberg:
    build: # Dockerfile 빌드
      context: ./ # Dockerfile 빌드 경로
    command: "gotenberg --api-timeout 400s"
    ports:
      - 3000:3000