George Pearse
03/07/2022, 4:20 PMdaniel
03/07/2022, 5:05 PMStefan Adelbert
03/07/2022, 11:10 PMdocker-compose.yaml
• docker-compose.build.yaml
The former has everything needed to run containers, assuming that the images have already been built.
Both of those files are used when I build the images, i.e. docker compose --file docker-compose.yaml --file docker-compose.build.yaml build
. This only happens locally or in the cloud (GCP Cloud Build) when the images are being built.
I deploy the following files to the place where I want to run dagster:
• dagster.yaml
• workspace.yaml
• .env
• docker-compose.yaml
I can then run docker compose up
(which relies on .env
and docker-compose.yaml
) and the images get fetched from an image repository. I can then run dagster using docker compose up
(which again relies .env
and docker-compose.yaml
) which starts the containers, and the containers then bind mount dagster.yaml
and workspace.yaml
.
I could simplify this by storing building dagster.yaml
and workspace.yaml
into the docker images and may move towards that in the future.
@daniel is right in what he says about the separation between dagster files (dagster.yaml
and workspace.yaml
) and docker files (.env
and docker-compose.yaml
).