CODEFRESH.IO DOCUMENTATION

Codefresh is a Docker-native CI/CD platform.

Instantly build , test and deploy Docker images.

Search results for "{{ search.query }}"

No results found for "{{search.query}}". 
View All Results

Create composition

Composition can be launched as part of unit test step, integration test or for running an image for manual testing. Also based on your docker-compose.yml automatically can be created services that were described in this file.
Below how to create a composition.

1. Add a composition

Click the Docker Swarm->Compositions view icon in the left pane, and click the ADD COMPOSITION button.

2. Enter the name of composition

In the Composition Name text box, type a name for your composition and click NEXT

3. Select Composition Starting Point

On this screen you can choose: What type of composition would you like to create?

3.1 From file in repo

Start a new composition from a docker compose file in your repository.

  1. In the search box, type the name of the repository.

Don't see your private repositories?

Try the following:

  • Started your free trial, so you can add private repositories.
  • If the free trial finished you can upgrade your account or contact us to extend the free trial.
  • Visit our Troubleshooting Center

Can't find your repository?

Try the ADD BY URL option.

  1. From the drop-down menu, select a branch for the first build.
  2. Click NEXT.
  3. Enter the path to docker-compose.yml
    By default, Codefresh searches for your docker-compose.yml at the root level of your repository, by the name docker-compose.yml. In case that your docker-compose.yml is in sub-directory, provide the path as well (./foo/bar/docker-compose.yml).
  1. Click NEXT

We don’t support build property of compose. We will replace it with images built by pipeline that automatically created.
Also in case if you have build property in your docker-compose.yml will be created a repository with pipeline for step that contains build property.

  1. Click CREATE

Now your composition has been created. You can launch the composition from this page at any time and Codefresh will provide you with browsable urls for services in accordance with exposed ports you described in the compose file.

To view the list of running compositions proceed to Docker Swarm->Environments. From there you also can see the logs of any service of a composition.

3.2 From template

If your repository doesn't include docker-compose.yml, you can use one of our templates to see how it works!

  1. Choose the template
  2. Click CREATE

You will see the editor of composition where you can change something and then launch this composition to see results.

Click on the rocket icon to launch this composition.

3.3 Empty composition

If you chose the Empty composition you want to create a composition from scratch. You will see the following screen with empty composition.

  1. To add a service, click the Add Service button.
    You can add existing built services, or provide the name for Docker image that will be pulled from Docker registry.

  2. (Optional) Click the Edit button to edit the content based on Docker Compose YAML .

  1. Click the Save icon on the upper right corner

Click on the rocket icon to launch this composition.

Create composition

Composition can be launched as part of unit test step, integration test or for running an image for manual testing. Also based on your docker-compose.yml automatically can be created services that were described in this file.
Below how to create a composition.