docker-compose.yml
files to set up previews.
In this page, you’ll learn how to set-up your first preview using a docker-compose.yml
file.
Getting started
- Log into the Ergomake dashboard.
- Select the desired organization and click the “Add Repository” button.
-
During the installation process, you’ll be prompted to give it access to the repository for which you want to generate previews.
Make sure to select all the repositories you need.
⚠️ Ergomake can’t generate previews if it doesn’t have access to a repository.
-
Open a pull request adding a
docker-compose.yml
file to a.ergomake
folder in the root of your repository.At this point, you should already receive a preview link in this pull request.
- Merge Ergomake’s PR once you’re happy with how the preview looks.
Writing Dockerfiles
Writing Dockerfiles tends to be the most difficult part of setting up previews usingdocker-compose.yml
.
To learn more about how to write them, see Writing Dockerfiles.