Skip to content

Add pre/post command option #468

@blackrosezy

Description

@blackrosezy

This is an idea to have options to run a command on fig up / fig stop so script have a chance to do some prep.
e.g.:

pre-command: cp /root/.ssh/id_rsa .
post-command: do some cleanup, send email notification, etc.

web:
  build: .
  command: python manage.py runserver 0.0.0.0:8000
  volumes:

What do you think?

Update:

The pre-command and post-command will be run on host machine, not container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions