scaffold other code locations

This commit is contained in:
2025-07-26 22:17:22 +02:00
parent ea4bee7186
commit fd1603e309
17 changed files with 183 additions and 25 deletions

View File

@@ -19,18 +19,18 @@ services:
# run launcher to use this same image when launching runs in a new container as well.
# Multiple containers like this can be deployed separately - each just needs to run on
# its own port, and have its own entry in the workspace.yaml file that's loaded by dagit.
user_code_vinyl:
dagster-code-vinyl:
build:
context: apps/vinyl
dockerfile: ../../Dockerfile.code
args:
- APP=vinyl
container_name: user_code_vinyl
image: user_code_vinyl
container_name: dagster-code-vinyl
image: dagster-code-vinyl
restart: always
environment:
<<: [ *dagster_env, *email_env ]
DAGSTER_CURRENT_IMAGE: user_code_vinyl
DAGSTER_CURRENT_IMAGE: dagster-code-vinyl
volumes:
- /opt/dagster/apps/:/apps/:ro
- /opt/dagster/shared/:/shared/:ro
@@ -40,21 +40,78 @@ services:
networks:
- dagster
user_code_other:
# profiles: [ disabled ]
dagster-code-stocks:
build:
context: apps/stocks
dockerfile: ../../Dockerfile.code
args:
- APP=stocks
container_name: dagster-code-stocks
image: dagster-code-stocks
restart: always
environment:
<<: [ *dagster_env ]
DAGSTER_CURRENT_IMAGE: dagster-code-stocks
volumes:
- /opt/dagster/apps/:/apps/:ro
- /opt/dagster/shared/:/shared/:ro
- /opt/dagster/logs/:/logs:rw
networks:
- dagster
dagster-code-tesla:
build:
context: apps/tesla
dockerfile: ../../Dockerfile.code
args:
- APP=tesla
container_name: dagster-code-tesla
image: dagster-code-tesla
restart: always
environment:
<<: [ *dagster_env ]
DAGSTER_CURRENT_IMAGE: dagster-code-tesla
volumes:
- /opt/dagster/apps/:/apps/:ro
- /opt/dagster/shared/:/shared/:ro
- /opt/dagster/logs/:/logs:rw
networks:
- dagster
dagster-code-weather:
build:
context: apps/weather
dockerfile: ../../Dockerfile.code
args:
- APP=weather
container_name: dagster-code-weather
image: dagster-code-weather
restart: always
environment:
<<: [ *dagster_env ]
DAGSTER_CURRENT_IMAGE: dagster-code-weather
volumes:
- /opt/dagster/apps/:/apps/:ro
- /opt/dagster/shared/:/shared/:ro
- /opt/dagster/logs/:/logs:rw
networks:
- dagster
dagster-code-other:
build:
context: apps/other
dockerfile: ../../Dockerfile.code
args:
- APP=other
container_name: user_code_other
image: user_code_other
container_name: dagster-code-other
image: dagster-code-other
restart: always
environment:
<<: [ *dagster_env ]
DAGSTER_CURRENT_IMAGE: user_code_other
DAGSTER_CURRENT_IMAGE: dagster-code-other
volumes:
- /opt/dagster/apps/:/apps:ro
- /opt/dagster/apps/:/apps/:ro
- /opt/dagster/shared/:/shared/:ro
- /opt/dagster/logs/:/logs:rw
networks:
- dagster