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

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

    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

    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

    Example:

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

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

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

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