Skip to content

Instantly share code, notes, and snippets.

@telderfts
Created May 24, 2023 16:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save telderfts/d15e6c6a7541fccc3c489d01139e443a to your computer and use it in GitHub Desktop.
Dagster service and daemon configs
DAGSTER.SERVICE
[Unit]
Description=Dagster Service
After=network.target
[Service]
Type=simple
User=ubuntu
Restart=always
WorkingDirectory=/opt/dagster
ExecStart=/home/ubuntu/.local/bin/dagster-daemon run
Environment="PATH=/home/ubuntu/.local/bin"
Environment="DAGSTER_HOME=/opt/dagster"
Environment="PATH=/usr/bin
[Install]
WantedBy=multi-user.target
DAGIT.SERVICE
[Unit]
Description=Dagster dagit service the gui
After=dagster.service
[Service]
Type=simple
User=ubuntu
Restart=always
WorkingDirectory=/opt/dagster/FTS_Data_Science/dagster-jobs/
ExecStart=/home/ubuntu/.local/bin/dagit -h 0.0.0.0 -p 3000
Environment="PATH=/home/ubuntu/.local/bin"
Environment="DAGSTER_HOME=/opt/dagster"
[Install]
WantedBy=multi-user.target
DAEMON CONFIG
storage:
postgres:
postgres_db:
username: dagster_postgres
password: *****************
hostname: dagster-postgresql.***********.us-west-2.rds.amazonaws.com
db_name: ************
port: 5432
# compute_logs:
# module: dagster_aws.s3.compute_log_manager
# class: S3ComputeLogManager
# config:
# bucket: "fts-dagster"
# prefix: "dagster-log-"
compute_logs:
module: dagster.core.storage.noop_compute_log_manager
class: "NoOpComputeLogManager"
local_artifact_storage:
module: dagster.core.storage.root
class: LocalArtifactStorage
config:
base_dir: "/opt/dagster/local/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment