.ddev/docker-compose.ssh-agent.yaml
version: '3.6'
services:
web:
volumes:
- type: 'volume'
source: 'home'
target: '/home/${USER}'
- type: 'bind'
source: '${SSH_AUTH_SOCK}'
target: '/tmp/ssh-agent'
- type: 'bind'
source: '/run/user/1000/bus'
target: '/run/user/1000/bus'
environment:
- SSH_AUTH_SOCK=/tmp/ssh-agent
- DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
volumes:
home: