A rudimentary template for a quick Dagster project setup in Docker. This is based on the image build process illustrated in the Deploying Dagster to Docker section.
git clone https://github.com/sarit-si/dagster-docker-template.git
cd dagster-docker-template
docker compose up -d
- (Optional) Create
home
folder incase customization of dagster instance is required (discussed below). - (Optional) To customise the Dagster instance, a
dagster.yaml
needs to be created. Place it in thehome
folder. This needsdocker compose down && docker compose up -d
. Without thedagster.yaml
, dagster will write logs, events, storage, etc. to/opt/dags/home
folder inside the conatiner. home
anddags
folders are volume mounted inside the container.- All assets, resources, etc. need to be placed inside the
dags
folder.
- As of writing this, Dagster (not Dagster Cloud) does not come with basic authentication out of the box.
- Used a reverse proxy Traefik to add an "at-least some" secure layer to authenticate users.
- Traefik has been added as a service in the docker compose file.
- The credentials for testing only: admin/admin. To have your own, follow the steps illustrated in the Traefik official docs.