Skip to content

Watch different command/entrypoint #12835

Open
@zoriya

Description

@zoriya

Description

When running with docker compose watch, i want my service to start their dev servers (those that support hotreloading & watch files)

When running with docker compose up, i want services to use their prod server (that will not start a file watcher & so on)

I was hoping to find something like services.app.develop.entrypoint or services.app.develop.command

Potential example:

services:
  web:
    build: .
    command: npm start
    develop:
      command: npm dev
      watch:
        - action: sync
          path: ./web
          target: /src/web
          ignore:
            - node_modules/
        - action: rebuild
          path: package.json

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions