Giter Site home page Giter Site logo

docker-compose-elixir's Introduction

Docker Compose Elixir

Elixir library to work with Docker Compose.

It wraps around the docker-compose CLI and provides subset of the capabilities directly from Elixir.

Installation

It's available in Hex, just add the snippet below to your dependencies.

{:docker_compose, "~> 0.3"}

Documentation can be found at HexDocs.

Make sure you have the docker-compose executable available and working, this library is only a wrapper around it. If running the app inside docker make sure the container has access to the docker socket and that the docker-compose inside the docker container works fine.

Using the library

The simplest and prob. most used command is up to start services defined in a compose definition.

DockerCompose.up()

If the compose is not located in the standard location you can use compose_path parameter, there are few other parameters for the most common scenarios, e.g. you can only start a specific services.

DockerCompose.up(compose_path: "docker/my-compose.yml", service: "db", service: "kafka")

For the full list of commands and options check out the official documentation at HexDocs.

Collaboration

If you found a bug or if you want some feature, feel free to open an issue or PR. We are open for collaboration! The library is not 100% complete, it implements what was needed at the time. However, it is very simple to add other options or commands, so feel free to open PRs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.