diff --git a/operate/services/service.py b/operate/services/service.py index 365cd82..3ab4d99 100644 --- a/operate/services/service.py +++ b/operate/services/service.py @@ -484,16 +484,16 @@ def _build_docker( # "SKILL_TRADER_ABCI_MODELS_PARAMS_ARGS_MECH_REQUEST_PRICE=10000000000000000" # noqa # ) # noqa - #temporary fix: remove extra volume - for service_name, service_data in deployment['services'].items(): - if 'abci' in service_name: + # temporary fix: remove extra volume + for service_name, service_data in deployment["services"].items(): + if "abci" in service_name: # Access the volumes list in this service - volumes = service_data.get('volumes', []) - + volumes = service_data.get("volumes", []) + # Remove './data:/data:Z' if it's in the volumes list - if './data:/data:Z' in volumes: - volumes.remove('./data:/data:Z') - + if "./data:/data:Z" in volumes: + volumes.remove("./data:/data:Z") + with (build / DOCKER_COMPOSE_YAML).open("w", encoding="utf-8") as stream: yaml_dump(data=deployment, stream=stream)