# compose.yml version: '3.8' volumes: projectname-bashhistory: # Define named volume for bash history # Note: The 'bashhistory' service is used to persist bash history data across different containers. services: # bashhistory: # volumes: # - projectname-bashhistory:/commandhistory:z # Mount the named volume to /commandhistory in bashhistory service devcontainer: container_name: devcontainer privileged: true hostname: devcontainer build: context: . dockerfile: Containerfile volumes: - ..:/workspace:cached # Mount parent directory to workspace - projectname-bashhistory:/commandhistory:z # Mount the named volume to /commandhistory in devcontainer service command: sleep infinity