Calling Developers!
We are reenergizing our code contribution process! Learn More

Hi all , I am trying to start a custom container through my deploy.dev.yml file,

Options
U03EDGXUTPH
U03EDGXUTPH Posts: 36 🧑🏻‍🚀 - Cadet
edited June 2023 in Spryker Dev Environment

Hi all , I am trying to start a custom container through my deploy.dev.yml file, but I can’t really see any documentation/code relating this. Do you know if this is somehow supported? Or will it only start pre-defined services?

Comments

  • U054K7D2JD9
    U054K7D2JD9 Posts: 5 🧑🏻‍🚀 - Cadet
    Options

    For that type of customisation, you would need to fork the docker sdk repo and add the new service there I think

  • U054K7D2JD9
    U054K7D2JD9 Posts: 5 🧑🏻‍🚀 - Cadet
    Options

    but, if you don't want to make use of the yml attributes and other features provided by docker sdk, and just want to add new service in docker-compose config file, it's possible to define a docker-compose override file in deploy.dev.yml

  • U054K7D2JD9
    U054K7D2JD9 Posts: 5 🧑🏻‍🚀 - Cadet
    Options

    Example:

    docker:
        compose:
            yamls:
                - docker-compose.override.yml
    
  • U054K7D2JD9
    U054K7D2JD9 Posts: 5 🧑🏻‍🚀 - Cadet
    Options

    you can put this override file in project root and add your new service there

  • U03EDGXUTPH
    U03EDGXUTPH Posts: 36 🧑🏻‍🚀 - Cadet
    Options

    Thanks! I somehow thought of docker like ‘configuration’ options 😄 This really makes my day!