Add binding for local temp directory in YAML (#6191)
* Add binding for local temp directory in YAML Bind the local temp directory to the sandbox for file access. * Update compose-with-shipyard.yml Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --------- Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -37,6 +37,7 @@ services:
|
|||||||
- DEFAULT_SHIP_MEMORY=512m
|
- DEFAULT_SHIP_MEMORY=512m
|
||||||
volumes:
|
volumes:
|
||||||
- ${PWD}/data/shipyard/bay_data:/app/data
|
- ${PWD}/data/shipyard/bay_data:/app/data
|
||||||
|
- ${PWD}/data/temp:/AstrBot/data/temp # Bind the local temp directory to the sandbox so that the uploaded file can be accessed in the sandbox
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
networks:
|
networks:
|
||||||
- astrbot_network
|
- astrbot_network
|
||||||
|
|||||||
Reference in New Issue
Block a user