株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

profileを指定すると、docker-compose upの起動対象外になる。

services:
  batch:
    build:
      context: .
      dockerfile: server/cmd/batch/Dockerfile
    container_name: batch
    environment:
    networks:
      - deployment-network
    volumes:
      - ./shops.csv:/tmp/shops.csv
    profiles:
      - manual-start

docker-compose upする場合は、–profileを指定する。

docker-compose --profile manual up

runの場合はprofileオプションの指定は不要。

docker-compose run batch

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)