github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/pkg/ddevapp/ssh_auth_compose_template.yaml (about) 1 volumes: 2 dot_ssh: 3 name: "ddev-ssh-agent_dot_ssh" 4 socket_dir: 5 name: "ddev-ssh-agent_socket_dir" 6 7 services: 8 ddev-ssh-agent: 9 container_name: ddev-ssh-agent 10 hostname: ddev-ssh-agent 11 build: 12 context: '{{ .BuildContext }}' 13 args: 14 BASE_IMAGE: '{{ .ssh_auth_image }}:{{ .ssh_auth_tag }}' 15 username: '{{ .Username }}' 16 uid: '{{ .UID }}' 17 gid: '{{ .GID }}' 18 image: '{{ .ssh_auth_image }}:{{ .ssh_auth_tag }}-built' 19 networks: 20 - ddev_default 21 restart: "no" 22 user: '$DDEV_UID:$DDEV_GID' 23 volumes: 24 - "dot_ssh:/tmp/.ssh" 25 - "socket_dir:/tmp/.ssh-agent" 26 environment: 27 - SSH_AUTH_SOCK=/tmp/.ssh-agent/socket 28 healthcheck: 29 interval: 1s 30 retries: 2 31 start_period: 10s 32 timeout: 62s 33 networks: 34 ddev_default: 35 name: ddev_default 36 external: true