Skip to content

Hooks/ Plugins support to run arbitrary scripts #1341

@mattes

Description

@mattes

It would be nice if docker-compose up|down|.. would look for custom scripts in the current directory, like:

docker-compose.before.up
docker-compose.after.up

I guess this is mostly helpful when docker-compose is used to run the development environment. These scripts should not be meant to configure containers.

My current use-cases include:

  • set up hostnames in /etc/hosts after container startup
  • run docker-rsync after container started

Eventually docker-compose should allow these scripts to run in the background and stream stdout/stderr to docker-compose logs.

Related #74 #57

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions