mount all apps in container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user