mount all apps in container

This commit is contained in:
2025-07-21 09:18:16 +02:00
parent fd73e1367c
commit 119583c730
8 changed files with 64 additions and 21 deletions

View File

@@ -15,17 +15,19 @@ services:
build:
context: apps/vinyl
dockerfile: ../../Dockerfile.code
args:
- APP=vinyl
container_name: user_code_vinyl
image: user_code_vinyl
restart: always
environment:
<<: *dagster_env
DAGSTER_CURRENT_IMAGE: user_code_vinyl
PYTHONPATH: app
volumes:
- /opt/dagster/storage/import/:/opt/dagster/home/storage/import/
- /opt/dagster/storage/deals/:/opt/dagster/home/storage/deals/
- /opt/dagster/apps/vinyl/src/:/opt/dagster/home/app/
- /opt/dagster/apps/:/apps/:ro
- /opt/dagster/storage/import/:/storage/import/:ro
- /opt/dagster/storage/deals/:/storage/deals/:rw
# - /opt/dagster/apps/vinyl/src/:/opt/dagster/home/app/
networks:
- dagster
@@ -34,14 +36,16 @@ services:
build:
context: apps/other
dockerfile: ../../Dockerfile.code
args:
- APP=other
container_name: user_code_other
image: user_code_other
restart: always
environment:
<<: *dagster_env
DAGSTER_CURRENT_IMAGE: user_code_other
PYTHONPATH: app
volumes:
- /opt/dagster/apps/other/src/:/opt/dagster/home/app/
# - /opt/dagster/apps/other/src/:/opt/dagster/home/app/
- /opt/dagster/apps/:/apps:ro
networks:
- dagster